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 @@ -974,7 +974,7 @@ describe('MdMenu', () => {
974974 . not . toContain ( 'mat-elevation-z3' , 'Expected no stacked elevation.' ) ;
975975 } ) ;
976976
977- it ( 'should close all of the menus when the root is closed programmatically' , ( ) => {
977+ it ( 'should close all of the menus when the root is closed programmatically' , fakeAsync ( ( ) => {
978978 compileTestComponent ( ) ;
979979 instance . rootTrigger . openMenu ( ) ;
980980 fixture . detectChanges ( ) ;
@@ -991,9 +991,10 @@ describe('MdMenu', () => {
991991
992992 instance . rootTrigger . closeMenu ( ) ;
993993 fixture . detectChanges ( ) ;
994+ tick ( 500 ) ;
994995
995996 expect ( overlay . querySelectorAll ( '.mat-menu-panel' ) . length ) . toBe ( 0 , 'Expected no open menus' ) ;
996- } ) ;
997+ } ) ) ;
997998
998999
9991000 } ) ;
You can’t perform that action at this time.
0 commit comments