Skip to content

Commit

Permalink
Update heatmap fixtures to restore tests (#13224)
Browse files Browse the repository at this point in the history
* hotfix

* update ...
  • Loading branch information
6543 committed Oct 20, 2020
1 parent 70cb9e3 commit 48a8009
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integrations/api_user_heatmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1571616000, Contributions: 1})
dummyheatmap = append(dummyheatmap, &models.UserHeatmapData{Timestamp: 1603152000, Contributions: 1})

assert.Equal(t, dummyheatmap, heatmap)
}
2 changes: 1 addition & 1 deletion models/fixtures/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
act_user_id: 2
repo_id: 2
is_private: true
created_unix: 1571686356
created_unix: 1603228283

-
id: 2
Expand Down
2 changes: 1 addition & 1 deletion models/user_heatmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestGetUserHeatmapDataByUser(t *testing.T) {
CountResult int
JSONResult string
}{
{2, 1, `[{"timestamp":1571616000,"contributions":1}]`},
{2, 1, `[{"timestamp":1603152000,"contributions":1}]`},
{3, 0, `[]`},
}
// Prepare
Expand Down

0 comments on commit 48a8009

Please sign in to comment.