diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-09-15 14:27:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 14:27:46 +0300 |
commit | c5d03d93fca6288af8d2079d8fb80cd1c606ab52 (patch) | |
tree | 8edf020f26acdc12f7be953490fbddf3e6b2b46b /js/tests/unit/modal.spec.js | |
parent | 1d484b573756adf43c5d6341477a3ae7a376615f (diff) |
Rename `e` to `event` (#34979)
Diffstat (limited to 'js/tests/unit/modal.spec.js')
-rw-r--r-- | js/tests/unit/modal.spec.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/js/tests/unit/modal.spec.js b/js/tests/unit/modal.spec.js index a65ed4afa8..9632fa6cf0 100644 --- a/js/tests/unit/modal.spec.js +++ b/js/tests/unit/modal.spec.js @@ -90,8 +90,8 @@ describe('Modal', () => { const modalEl = fixtureEl.querySelector('.modal') const modal = new Modal(modalEl) - modalEl.addEventListener('show.bs.modal', e => { - expect(e).toBeDefined() + modalEl.addEventListener('show.bs.modal', event => { + expect(event).toBeDefined() }) modalEl.addEventListener('shown.bs.modal', () => { @@ -114,8 +114,8 @@ describe('Modal', () => { backdrop: false }) - modalEl.addEventListener('show.bs.modal', e => { - expect(e).toBeDefined() + modalEl.addEventListener('show.bs.modal', event => { + expect(event).toBeDefined() }) modalEl.addEventListener('shown.bs.modal', () => { @@ -184,8 +184,8 @@ describe('Modal', () => { const modalEl = fixtureEl.querySelector('.modal') const modal = new Modal(modalEl) - modalEl.addEventListener('show.bs.modal', e => { - e.preventDefault() + modalEl.addEventListener('show.bs.modal', event => { + event.preventDefault() const expectedDone = () => { expect().nothing() @@ -209,9 +209,9 @@ describe('Modal', () => { const modal = new Modal(modalEl) let prevented = false - modalEl.addEventListener('show.bs.modal', e => { + modalEl.addEventListener('show.bs.modal', event => { if (!prevented) { - e.preventDefault() + event.preventDefault() prevented = true setTimeout(() => { @@ -616,8 +616,8 @@ describe('Modal', () => { modal.hide() }) - modalEl.addEventListener('hide.bs.modal', e => { - expect(e).toBeDefined() + modalEl.addEventListener('hide.bs.modal', event => { + expect(event).toBeDefined() }) modalEl.addEventListener('hidden.bs.modal', () => { @@ -694,8 +694,8 @@ describe('Modal', () => { }, 10) } - modalEl.addEventListener('hide.bs.modal', e => { - e.preventDefault() + modalEl.addEventListener('hide.bs.modal', event => { + event.preventDefault() hideCallback() }) @@ -971,8 +971,8 @@ describe('Modal', () => { }, 10) } - modalEl.addEventListener('show.bs.modal', e => { - e.preventDefault() + modalEl.addEventListener('show.bs.modal', event => { + event.preventDefault() showListener() }) |