From 576ee24c8491726e78b03be5dd1d5ff8563e924f Mon Sep 17 00:00:00 2001 From: Francois Laithier Date: Wed, 17 Jul 2024 17:57:00 -0700 Subject: [PATCH] Fix broken unit test that depends on date. FWIW, the test will break again on 2042-07-18 --- tests/unit/ValidationUtilsTest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/ValidationUtilsTest.ts b/tests/unit/ValidationUtilsTest.ts index 3bd083bc07e4..2b251bef979c 100644 --- a/tests/unit/ValidationUtilsTest.ts +++ b/tests/unit/ValidationUtilsTest.ts @@ -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); });