Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2022-03-01 18:08:12 +0300
committerGitHub <noreply@github.com>2022-03-01 18:08:12 +0300
commit63f30ac8ee28d12b5044c1f98e3b6ca7720a1f81 (patch)
tree3277f2f1d92aceb816c41208f9c4fa404fbe7dec /js/tests/unit/modal.spec.js
parentc644f09d88a93445b415faa796f1d246ca34e2e7 (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.js4
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()
}