From 09abea11e8b7a100e09fe382d9fa8801aacbdfe3 Mon Sep 17 00:00:00 2001 From: Zach Arend Date: Tue, 15 Feb 2022 18:53:09 +0000 Subject: [PATCH] fix(material/datepicker): fix failing unit test in multiyear view Fix a failing unit test, which was referencing Jan 1, 2017 as the initial date when it is actually Jan 3, 2017. This happened as a result of a bad merge where #24384 changed the initial date to Jan 3, and #24401 added a new test that assume the initial date was Jan 1. Fixes CI failure --- src/material/datepicker/multi-year-view.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/datepicker/multi-year-view.spec.ts b/src/material/datepicker/multi-year-view.spec.ts index 093a66ccc2b0..f106df18f178 100644 --- a/src/material/datepicker/multi-year-view.spec.ts +++ b/src/material/datepicker/multi-year-view.spec.ts @@ -241,7 +241,7 @@ describe('MatMultiYearView', () => { dispatchFakeEvent(year2017Cell, 'focus'); fixture.detectChanges(); - expect(calendarInstance.date).toEqual(new Date(2017, JAN, 1)); + expect(calendarInstance.date).toEqual(new Date(2017, JAN, 3)); expect(focusSpy).not.toHaveBeenCalled(); }); });