Skip to content

Commit b636cc0

Browse files
crisbetommalerba
authored andcommitted
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.
1 parent 3ca3e39 commit b636cc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/bottom-sheet/bottom-sheet.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)