diff options
author | GeoSot <geo.sotis@gmail.com> | 2022-03-01 18:08:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 18:08:12 +0300 |
commit | 63f30ac8ee28d12b5044c1f98e3b6ca7720a1f81 (patch) | |
tree | 3277f2f1d92aceb816c41208f9c4fa404fbe7dec /js/tests/unit/modal.spec.js | |
parent | c644f09d88a93445b415faa796f1d246ca34e2e7 (diff) |
Modal: refactor listeners to reduce some code noise (#35902)
Diffstat (limited to 'js/tests/unit/modal.spec.js')
-rw-r--r-- | js/tests/unit/modal.spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/modal.spec.js b/js/tests/unit/modal.spec.js index a04eb2cc2c..bf26377fe8 100644 --- a/js/tests/unit/modal.spec.js +++ b/js/tests/unit/modal.spec.js @@ -438,10 +438,10 @@ describe('Modal', () => { const modalEl = fixtureEl.querySelector('.modal') const modal = new Modal(modalEl) - spyOn(modal, '_adjustDialog').and.callThrough() + const spy = spyOn(modal, '_adjustDialog').and.callThrough() const expectDone = () => { - expect(modal._adjustDialog).toHaveBeenCalled() + expect(spy).toHaveBeenCalled() resolve() } |