diff --git a/src/calendar/__tests__/RangeCalendar.test.tsx b/src/calendar/__tests__/RangeCalendar.test.tsx index ed2f1a447..f4e31c16b 100644 --- a/src/calendar/__tests__/RangeCalendar.test.tsx +++ b/src/calendar/__tests__/RangeCalendar.test.tsx @@ -87,12 +87,14 @@ describe("RangeCalendar", () => { it("should have proper initial start and end ranges", () => { const { getByLabelText: label, baseElement } = render( , ); const start = baseElement.querySelector("[data-is-selection-start]"); - const anyMiddleDate = label("Thursday, October 15, 2020"); + // If anyone is reading this code from future + // Note that this will fail again on 15th october 2050. + const anyMiddleDate = label("Saturday, October 15, 2050"); const end = baseElement.querySelector("[data-is-selection-end]"); expect(start).toHaveTextContent("7");