We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28943dd commit 5674c83Copy full SHA for 5674c83
src/lib/datepicker/datepicker.spec.ts
@@ -343,7 +343,7 @@ describe('MatDatepicker', () => {
343
expect(() => fixture.detectChanges()).not.toThrow();
344
});
345
346
- it('should clear out the backdrop subscriptions on close', () => {
+ it('should clear out the backdrop subscriptions on close', fakeAsync(() => {
347
for (let i = 0; i < 3; i++) {
348
testComponent.datepicker.open();
349
fixture.detectChanges();
@@ -361,10 +361,11 @@ describe('MatDatepicker', () => {
361
362
backdrop.click();
363
364
+ flush();
365
366
expect(testComponent.datepicker.close).toHaveBeenCalledTimes(1);
367
expect(testComponent.datepicker.opened).toBe(false);
- });
368
+ }));
369
370
371
describe('datepicker with too many inputs', () => {
0 commit comments