chore(datepicker): fix test failure (#9015)

This commit is contained in:
Kristiyan Kostadinov
2017-12-20 01:49:39 +01:00
committed by Joey Perrott
parent 28943dd956
commit 5674c83184
+3 -2
View File
@@ -343,7 +343,7 @@ describe('MatDatepicker', () => {
expect(() => fixture.detectChanges()).not.toThrow();
});
it('should clear out the backdrop subscriptions on close', () => {
it('should clear out the backdrop subscriptions on close', fakeAsync(() => {
for (let i = 0; i < 3; i++) {
testComponent.datepicker.open();
fixture.detectChanges();
@@ -361,10 +361,11 @@ describe('MatDatepicker', () => {
backdrop.click();
fixture.detectChanges();
flush();
expect(testComponent.datepicker.close).toHaveBeenCalledTimes(1);
expect(testComponent.datepicker.opened).toBe(false);
});
}));
});
describe('datepicker with too many inputs', () => {