From 6f0bf2e6a86771dca398cfa1aed1a145733bfc70 Mon Sep 17 00:00:00 2001 From: Adriano Costa Date: Thu, 16 Mar 2023 09:53:26 +0100 Subject: [PATCH] [HXCS-1166] fix lint --- .../lib/notifications/services/notification.service.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/src/lib/notifications/services/notification.service.spec.ts b/lib/core/src/lib/notifications/services/notification.service.spec.ts index 93f4fb3c0e..c04ea2df8d 100644 --- a/lib/core/src/lib/notifications/services/notification.service.spec.ts +++ b/lib/core/src/lib/notifications/services/notification.service.spec.ts @@ -228,7 +228,7 @@ describe('NotificationService', () => { fixture.detectChanges(); expect(document.querySelector('.custom-template-class')).not.toBeNull(); - expect(document.querySelector('.custom-template-class').innerHTML).toEqual('Custom content with templateRef'); + expect(document.querySelector('.custom-template-class')?.innerHTML).toEqual('Custom content with templateRef'); }); it('should open a message notification bar with action and custom templateRef configuration', (done) => { @@ -240,7 +240,7 @@ describe('NotificationService', () => { fixture.detectChanges(); expect(document.querySelector('.custom-template-class')).not.toBeNull(); - expect(document.querySelector('.custom-template-class').innerHTML).toEqual('Custom content with templateRef'); + expect(document.querySelector('.custom-template-class')?.innerHTML).toEqual('Custom content with templateRef'); }); });