diff --git a/npm/ng-packs/packages/theme-shared/src/lib/tests/confirmation.service.spec.ts b/npm/ng-packs/packages/theme-shared/src/lib/tests/confirmation.service.spec.ts index e70b88061f..1413e034d7 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/tests/confirmation.service.spec.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/tests/confirmation.service.spec.ts @@ -105,6 +105,14 @@ describe('ConfirmationService', () => { selectConfirmationElement('button#cancel').click(); }); + + test('should not call the listenToEscape method when dismissible is false', () => { + const spy = spyOn(service as any, 'listenToEscape'); + + service.info('', '', { dismissible: false }); + + expect(spy.calls.count()).toBe(0); + }); }); function clearElements(selector = '.confirmation') {