Skip to content

Commit

Permalink
fix: test for node v16
Browse files Browse the repository at this point in the history
  • Loading branch information
F authored and F committed Aug 30, 2024
1 parent a060cc7 commit eb992cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/datepicker/src/__test__/date.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ describe('formatMonthName', () => {

expect(formatMonthName(testDate, DEFAULT_LOCALE_CONFIG)).toBe('November');
// Short version of Ukrainian "листопад"
expect(formatMonthName(testDate, ALTERNATIVE_LOCALE_CONFIG)).toBe('лист.');
// Note node 16 has value "лис" and node 18+ has value "лист."
expect(formatMonthName(testDate, ALTERNATIVE_LOCALE_CONFIG)).toMatch(/лис/);
});
});

Expand Down

0 comments on commit eb992cc

Please sign in to comment.