Skip to content

Commit

Permalink
Update src/calendar/__tests__/calendar.test.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Connor Lanigan <[email protected]>
  • Loading branch information
pan-kot and connorlanigan authored Jan 27, 2025
1 parent 0fc25bf commit 5ccbfea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calendar/__tests__/calendar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ test('check a11y', async () => {
await expect(container).toValidateA11y();
});

test.each(range(0, 11).map(month => addMonths(new Date('2025-01-01'), month).toISOString().split('T')[0]))(
const eachMonthOfTheYear = range(0, 11).map(month => addMonths(new Date('2025-01-01'), month).toISOString().split('T')[0]);
test.each(eachMonthOfTheYear)(
'always renders 42 days, value=%s',
value => {
renderCalendar({ value });
Expand Down

0 comments on commit 5ccbfea

Please sign in to comment.