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