1
0
Fork 0
forked from forgejo/forgejo

Update heatmap fixtures to restore tests (#8615)

* Update heatmap fixtures to restore tests
* Add hint to check the fixture age on fail
This commit is contained in:
zeripath 2019-10-21 21:19:53 +01:00 committed by GitHub
parent 41c7aa5a3a
commit b59a905394
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ func TestUserHeatmap(t *testing.T) {
var heatmap []*models.UserHeatmapData
DecodeJSON(t, resp, &heatmap)
var dummyheatmap []*models.UserHeatmapData
dummyheatmap = append(dummyheatmap, &models.UserHeatmapData{Timestamp: 1540080000, Contributions: 1})
dummyheatmap = append(dummyheatmap, &models.UserHeatmapData{Timestamp: 1571616000, Contributions: 1})
assert.Equal(t, dummyheatmap, heatmap)
}