Test fix.

This commit is contained in:
go-jet 2022-02-09 12:41:58 +01:00
parent c86903fd1d
commit dc557390b0
2 changed files with 3 additions and 2 deletions

View file

@ -67,7 +67,8 @@ func AssertJSON(t *testing.T, data interface{}, expectedJSON string) {
jsonData, err := json.MarshalIndent(data, "", "\t") jsonData, err := json.MarshalIndent(data, "", "\t")
require.NoError(t, err) 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 // SaveJSONFile saves v as json at testRelativePath

View file

@ -206,7 +206,7 @@ GROUP BY payment.customer_id;
"RentalID": null, "RentalID": null,
"Amount": 0, "Amount": 0,
"PaymentDate": "0001-01-01T00:00:00Z", "PaymentDate": "0001-01-01T00:00:00Z",
"LastUpdate": null, "LastUpdate": "0001-01-01T00:00:00Z",
"Count": 8, "Count": 8,
"Sum": 38.92, "Sum": 38.92,
"Avg": 4.865, "Avg": 4.865,