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
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ GROUP BY payment.customer_id;
|
|||
"RentalID": null,
|
||||
"Amount": 0,
|
||||
"PaymentDate": "0001-01-01T00:00:00Z",
|
||||
"LastUpdate": null,
|
||||
"LastUpdate": "0001-01-01T00:00:00Z",
|
||||
"Count": 8,
|
||||
"Sum": 38.92,
|
||||
"Avg": 4.865,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue