Browse Source

modal test updated

pull/15995/head
masumulu28 3 years ago
parent
commit
b0f1789d5b
  1. 3
      npm/ng-packs/packages/theme-shared/src/lib/tests/modal.component.spec.ts

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

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

Loading…
Cancel
Save