diff --git a/src/material/tooltip/tooltip.spec.ts b/src/material/tooltip/tooltip.spec.ts index b61eb9479982..5569df953caa 100644 --- a/src/material/tooltip/tooltip.spec.ts +++ b/src/material/tooltip/tooltip.spec.ts @@ -413,12 +413,12 @@ describe('MDC-based MatTooltip', () => { it('should not show tooltip if message is not present or empty', () => { assertTooltipInstance(tooltipDirective, false); - tooltipDirective.message = undefined!; + tooltipDirective.message = undefined; fixture.detectChanges(); tooltipDirective.show(); assertTooltipInstance(tooltipDirective, false); - tooltipDirective.message = null!; + tooltipDirective.message = null; fixture.detectChanges(); tooltipDirective.show(); assertTooltipInstance(tooltipDirective, false);