mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Update heatmap fixtures to restore tests (#13224)
* hotfix * update ...
This commit is contained in:
		@@ -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)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,7 @@
 | 
			
		||||
  act_user_id: 2
 | 
			
		||||
  repo_id: 2
 | 
			
		||||
  is_private: true
 | 
			
		||||
  created_unix: 1571686356
 | 
			
		||||
  created_unix: 1603228283
 | 
			
		||||
 | 
			
		||||
-
 | 
			
		||||
  id: 2
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user