Skip to content

Commit 0190bf9

Browse files
committed
Updating the math.random() function
1 parent 6dbbee6 commit 0190bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/__tests__/unit/components/ContributionHeatmap.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ describe('ContributionHeatmap', () => {
136136
for (let i = 0; i < 365; i++) {
137137
const date = new Date('2024-01-01')
138138
date.setDate(date.getDate() + i)
139-
largeData[date.toISOString().split('T')[0]] = Math.floor(Math.random() * 20)
139+
largeData[date.toISOString().split('T')[0]] = (i % 20)
140140
}
141141
renderWithTheme(<ContributionHeatmap contributionData={largeData} startDate="2024-01-01" endDate="2024-12-31" />)
142142
expect(screen.getByTestId('mock-heatmap-chart')).toBeInTheDocument()

0 commit comments

Comments
 (0)