Skip to content

Commit 5603d9b

Browse files
authored
fix(material/datepicker): fix failing unit test in multiyear view (#24418)
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
1 parent f0ebd2a commit 5603d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/datepicker/multi-year-view.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ describe('MatMultiYearView', () => {
241241
dispatchFakeEvent(year2017Cell, 'focus');
242242
fixture.detectChanges();
243243

244-
expect(calendarInstance.date).toEqual(new Date(2017, JAN, 1));
244+
expect(calendarInstance.date).toEqual(new Date(2017, JAN, 3));
245245
expect(focusSpy).not.toHaveBeenCalled();
246246
});
247247
});

0 commit comments

Comments
 (0)