File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ describe('MatDatepicker', () => {
343
343
expect ( ( ) => fixture . detectChanges ( ) ) . not . toThrow ( ) ;
344
344
} ) ;
345
345
346
- it ( 'should clear out the backdrop subscriptions on close' , ( ) => {
346
+ it ( 'should clear out the backdrop subscriptions on close' , fakeAsync ( ( ) => {
347
347
for ( let i = 0 ; i < 3 ; i ++ ) {
348
348
testComponent . datepicker . open ( ) ;
349
349
fixture . detectChanges ( ) ;
@@ -361,10 +361,11 @@ describe('MatDatepicker', () => {
361
361
362
362
backdrop . click ( ) ;
363
363
fixture . detectChanges ( ) ;
364
+ flush ( ) ;
364
365
365
366
expect ( testComponent . datepicker . close ) . toHaveBeenCalledTimes ( 1 ) ;
366
367
expect ( testComponent . datepicker . opened ) . toBe ( false ) ;
367
- } ) ;
368
+ } ) ) ;
368
369
} ) ;
369
370
370
371
describe ( 'datepicker with too many inputs' , ( ) => {
You can’t perform that action at this time.
0 commit comments