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 @@ -341,7 +341,7 @@ describe('MatDatepicker', () => {
341
341
expect ( ( ) => fixture . detectChanges ( ) ) . not . toThrow ( ) ;
342
342
} ) ;
343
343
344
- it ( 'should clear out the backdrop subscriptions on close' , ( ) => {
344
+ it ( 'should clear out the backdrop subscriptions on close' , fakeAsync ( ( ) => {
345
345
for ( let i = 0 ; i < 3 ; i ++ ) {
346
346
testComponent . datepicker . open ( ) ;
347
347
fixture . detectChanges ( ) ;
@@ -359,10 +359,11 @@ describe('MatDatepicker', () => {
359
359
360
360
backdrop . click ( ) ;
361
361
fixture . detectChanges ( ) ;
362
+ flush ( ) ;
362
363
363
364
expect ( testComponent . datepicker . close ) . toHaveBeenCalledTimes ( 1 ) ;
364
365
expect ( testComponent . datepicker . opened ) . toBe ( false ) ;
365
- } ) ;
366
+ } ) ) ;
366
367
} ) ;
367
368
368
369
describe ( 'datepicker with too many inputs' , ( ) => {
You can’t perform that action at this time.
0 commit comments