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:
authorJulien Déramond <julien.deramond@orange.com>2022-07-15 16:54:19 +0300
committerGitHub <noreply@github.com>2022-07-15 16:54:19 +0300
commitfb683cb0514ee83c8f0636767bb67866d87c946f (patch)
tree20dd25b4488960f83b2e002d1df56d9153e3df01
parentbf02cbc65289b563bf29c73c9f89345df571c5fc (diff)
parentaa8d0b34399b647c1e89f58a9d244a396846cd64 (diff)
Merge branch 'main' into main-jd-docs-disabled-range-consistencymain-jd-docs-disabled-range-consistency
-rw-r--r--js/tests/unit/modal.spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tests/unit/modal.spec.js b/js/tests/unit/modal.spec.js
index 9e463d2be3..1bdf4e66ad 100644
--- a/js/tests/unit/modal.spec.js
+++ b/js/tests/unit/modal.spec.js
@@ -713,16 +713,16 @@ describe('Modal', () => {
const dialogEl = modalEl.querySelector('.modal-dialog')
const modal = new Modal(modalEl)
- spyOn(modal, 'hide')
+ const spy = spyOn(modal, 'hide')
modalEl.addEventListener('shown.bs.modal', () => {
const mouseDown = createEvent('mousedown')
dialogEl.dispatchEvent(mouseDown)
- expect(modal.hide).not.toHaveBeenCalled()
+ expect(spy).not.toHaveBeenCalled()
modalEl.dispatchEvent(mouseDown)
- expect(modal.hide).toHaveBeenCalled()
+ expect(spy).toHaveBeenCalled()
resolve()
})