File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -582,18 +582,18 @@ describe('MatBottomSheet', () => {
582582 viewContainerFixture . detectChanges ( ) ;
583583 flushMicrotasks ( ) ;
584584
585- expect ( document . activeElement . id )
585+ expect ( document . activeElement ! . id )
586586 . not . toBe ( 'bottom-sheet-trigger' , 'Expected the focus to change when sheet was opened.' ) ;
587587
588588 bottomSheetRef . dismiss ( ) ;
589- expect ( document . activeElement . id ) . not . toBe ( 'bottom-sheet-trigger' ,
589+ expect ( document . activeElement ! . id ) . not . toBe ( 'bottom-sheet-trigger' ,
590590 'Expcted the focus not to have changed before the animation finishes.' ) ;
591591
592592 flushMicrotasks ( ) ;
593593 viewContainerFixture . detectChanges ( ) ;
594594 tick ( 500 ) ;
595595
596- expect ( document . activeElement . id ) . not . toBe ( 'bottom-sheet-trigger' ,
596+ expect ( document . activeElement ! . id ) . not . toBe ( 'bottom-sheet-trigger' ,
597597 'Expected the trigger not to be refocused on close.' ) ;
598598
599599 document . body . removeChild ( button ) ;
You can’t perform that action at this time.
0 commit comments