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:
Kristiyan Kostadinov
2018-10-23 21:53:50 +02:00
committed by mmalerba
parent 3ca3e39d59
commit b636cc09d6
+3 -3
View File
@@ -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);