Browse Source

fix: modal.component test

pull/19858/head
masumulu28 2 years ago
parent
commit
dd58c77ea8
  1. 4
      npm/ng-packs/packages/theme-shared/src/lib/tests/modal.component.spec.ts

4
npm/ng-packs/packages/theme-shared/src/lib/tests/modal.component.spec.ts

@ -158,9 +158,9 @@ describe('ModalComponent', () => {
spectator.dispatchKeyboardEvent(spectator.component.modalWindowRef, 'keyup', 'Escape');
await wait300ms();
const { keyboard } = spectator.component.options;
const { keyboard } = spectator.component.options();
expect(spectator.component.visible).toBe(!keyboard);
expect(spectator.component.visible()).toBe(!keyboard);
});
it('should not close when busy is true', async () => {

Loading…
Cancel
Save