Skip to content

Commit 890052c

Browse files
committed
Fix dialog tests that were added after initial strict-null pass
1 parent 0c3b0df commit 890052c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/dialog/dialog.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,8 @@ describe('MdDialog', () => {
667667
}));
668668

669669
it('should set the aria-labelled by attribute to the id of the title', async(() => {
670-
let title = overlayContainerElement.querySelector('[md-dialog-title]');
671-
let container = overlayContainerElement.querySelector('md-dialog-container');
670+
let title = overlayContainerElement.querySelector('[md-dialog-title]')!;
671+
let container = overlayContainerElement.querySelector('md-dialog-container')!;
672672

673673
viewContainerFixture.whenStable().then(() => {
674674
expect(title.id).toBeTruthy('Expected title element to have an id.');

0 commit comments

Comments
 (0)