diff --git a/packages/datetime/test/datePickerCaptionTests.tsx b/packages/datetime/test/datePickerCaptionTests.tsx index 884904b50a..89cce9c399 100644 --- a/packages/datetime/test/datePickerCaptionTests.tsx +++ b/packages/datetime/test/datePickerCaptionTests.tsx @@ -110,7 +110,7 @@ describe("", () => { date={new Date(2015, 0)} locale="en" localeUtils={LOCALE_UTILS} - maxDate={new Date(2020, 0)} + maxDate={new Date(2030, 0)} minDate={new Date(2010, 0)} months={undefined} {...props} diff --git a/packages/datetime/test/dateRangeInputTests.tsx b/packages/datetime/test/dateRangeInputTests.tsx index 438f8d0788..1bccc4f5a5 100644 --- a/packages/datetime/test/dateRangeInputTests.tsx +++ b/packages/datetime/test/dateRangeInputTests.tsx @@ -80,7 +80,7 @@ describe("", () => { const INVALID_MESSAGE = "Custom invalid-date message"; const OUT_OF_RANGE_TEST_MIN = new Date(2000, 1, 1); - const OUT_OF_RANGE_TEST_MAX = new Date(2020, 1, 1); + const OUT_OF_RANGE_TEST_MAX = new Date(2030, 1, 1); const OUT_OF_RANGE_START_DATE = new Date(1000, 1, 1); const OUT_OF_RANGE_START_STR = DateTestUtils.toDateString(OUT_OF_RANGE_START_DATE); const OUT_OF_RANGE_END_DATE = new Date(3000, 1, 1); diff --git a/packages/datetime/test/dateRangePickerTests.tsx b/packages/datetime/test/dateRangePickerTests.tsx index 8f397f4712..6e03a68d9a 100644 --- a/packages/datetime/test/dateRangePickerTests.tsx +++ b/packages/datetime/test/dateRangePickerTests.tsx @@ -290,20 +290,20 @@ describe("", () => { it("is initialMonth if set", () => { const defaultValue = [new Date(2007, Months.APRIL, 4), null] as DateRange; const initialMonth = new Date(2002, Months.MARCH, 1); - const maxDate = new Date(2020, Months.JANUARY); + const maxDate = new Date(2030, Months.JANUARY); const minDate = new Date(2000, Months.JANUARY); render({ defaultValue, initialMonth, maxDate, minDate }).left.assertMonthYear(Months.MARCH, 2002); }); it("is defaultValue if set and initialMonth not set", () => { const defaultValue = [new Date(2007, Months.APRIL, 4), null] as DateRange; - const maxDate = new Date(2020, Months.JANUARY); + const maxDate = new Date(2030, Months.JANUARY); const minDate = new Date(2000, Months.JANUARY); render({ defaultValue, maxDate, minDate }).left.assertMonthYear(Months.APRIL, 2007); }); it("is value if set and initialMonth not set", () => { - const maxDate = new Date(2020, Months.JANUARY); + const maxDate = new Date(2030, Months.JANUARY); const minDate = new Date(2000, Months.JANUARY); const value = [new Date(2007, Months.APRIL, 4), null] as DateRange; render({ maxDate, minDate, value }).left.assertMonthYear(Months.APRIL, 2007); @@ -328,7 +328,7 @@ describe("", () => { }); it("is today if only maxDate/minDate set and today is in date range", () => { - const maxDate = new Date(2020, Months.JANUARY); + const maxDate = new Date(2030, Months.JANUARY); const minDate = new Date(2000, Months.JANUARY); const today = new Date(); render({ maxDate, minDate }).left.assertMonthYear(today.getMonth(), today.getFullYear());