Skip to content

Commit

Permalink
Fix broken unit test that depends on date.
Browse files Browse the repository at this point in the history
FWIW, the test will break again on 2042-07-18
  • Loading branch information
francoisl committed Jul 18, 2024
1 parent d739580 commit 576ee24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/ValidationUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('ValidationUtils', () => {
});

test('Should return false for a date after the range', () => {
const futureDate = '3024-07-18';
const futureDate = '3042-07-18';
const isValid = ValidationUtils.isValidDate(futureDate);
expect(isValid).toBe(false);
});
Expand Down

0 comments on commit 576ee24

Please sign in to comment.