From 4345245cf37961a2cc42996da1257ba0b8077a1f Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 3 Oct 2018 00:21:10 +0200 Subject: [PATCH] chore: fix compilation error in master (#13398) Fixes a compilation error that got introduced in master because of the TS 3.1 update. --- src/lib/bottom-sheet/bottom-sheet.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/bottom-sheet/bottom-sheet.spec.ts b/src/lib/bottom-sheet/bottom-sheet.spec.ts index 4d3f076a8ff..b063cc0ad98 100644 --- a/src/lib/bottom-sheet/bottom-sheet.spec.ts +++ b/src/lib/bottom-sheet/bottom-sheet.spec.ts @@ -669,7 +669,7 @@ describe('MatBottomSheet with default options', () => { dispatchKeyboardEvent(document.body, 'keydown', ESCAPE); expect(overlayContainerElement.querySelector('mat-bottom-sheet-container')).toBeTruthy(); - expect(document.activeElement.tagName).not.toBe('INPUT'); + expect(document.activeElement!.tagName).not.toBe('INPUT'); }); it('should be overridable by open() options', fakeAsync(() => {