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', () => {
974
974
. not . toContain ( 'mat-elevation-z3' , 'Expected no stacked elevation.' ) ;
975
975
} ) ;
976
976
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 ( ( ) => {
978
978
compileTestComponent ( ) ;
979
979
instance . rootTrigger . openMenu ( ) ;
980
980
fixture . detectChanges ( ) ;
@@ -991,9 +991,10 @@ describe('MdMenu', () => {
991
991
992
992
instance . rootTrigger . closeMenu ( ) ;
993
993
fixture . detectChanges ( ) ;
994
+ tick ( 500 ) ;
994
995
995
996
expect ( overlay . querySelectorAll ( '.mat-menu-panel' ) . length ) . toBe ( 0 , 'Expected no open menus' ) ;
996
- } ) ;
997
+ } ) ) ;
997
998
998
999
999
1000
} ) ;
You can’t perform that action at this time.
0 commit comments