mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore: fix compilation error in bottom sheet tests (#13775)
Fixes a compilation error that got in through a PR that was opened before we updated to TS 3.1.
This commit is contained in:
committed by
mmalerba
parent
3ca3e39d59
commit
b636cc09d6
@@ -582,18 +582,18 @@ describe('MatBottomSheet', () => {
|
||||
viewContainerFixture.detectChanges();
|
||||
flushMicrotasks();
|
||||
|
||||
expect(document.activeElement.id)
|
||||
expect(document.activeElement!.id)
|
||||
.not.toBe('bottom-sheet-trigger', 'Expected the focus to change when sheet was opened.');
|
||||
|
||||
bottomSheetRef.dismiss();
|
||||
expect(document.activeElement.id).not.toBe('bottom-sheet-trigger',
|
||||
expect(document.activeElement!.id).not.toBe('bottom-sheet-trigger',
|
||||
'Expcted the focus not to have changed before the animation finishes.');
|
||||
|
||||
flushMicrotasks();
|
||||
viewContainerFixture.detectChanges();
|
||||
tick(500);
|
||||
|
||||
expect(document.activeElement.id).not.toBe('bottom-sheet-trigger',
|
||||
expect(document.activeElement!.id).not.toBe('bottom-sheet-trigger',
|
||||
'Expected the trigger not to be refocused on close.');
|
||||
|
||||
document.body.removeChild(button);
|
||||
|
||||
Reference in New Issue
Block a user