Test fix.
This commit is contained in:
parent
c86903fd1d
commit
dc557390b0
2 changed files with 3 additions and 2 deletions
|
|
@ -67,7 +67,8 @@ func AssertJSON(t *testing.T, data interface{}, expectedJSON string) {
|
|||
jsonData, err := json.MarshalIndent(data, "", "\t")
|
||||
require.NoError(t, err)
|
||||
|
||||
require.Equal(t, "\n"+string(jsonData)+"\n", expectedJSON)
|
||||
dataJson := "\n" + string(jsonData) + "\n"
|
||||
require.Equal(t, dataJson, expectedJSON)
|
||||
}
|
||||
|
||||
// SaveJSONFile saves v as json at testRelativePath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue