test: fix test linting

See forgejo/forgejo#5911
This commit is contained in:
Michael Kriese 2024-11-11 10:31:03 +01:00
parent 1e7b368ccf
commit c33cbae7cc
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
11 changed files with 15 additions and 18 deletions

View file

@ -96,6 +96,6 @@ func TestGetUserHeatmapDataByUser(t *testing.T) {
// Test JSON rendering
jsonData, err := json.Marshal(heatmap)
require.NoError(t, err)
assert.Equal(t, tc.JSONResult, string(jsonData))
assert.JSONEq(t, tc.JSONResult, string(jsonData))
}
}