aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/modal.spec.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-07-30 09:28:51 +0300
committerXhmikosR <[email protected]>2021-10-05 19:52:11 +0300
commit666fe596bf4629777f995dd79046b1db632ffdfb (patch)
tree9e14fcf9c5d325e668d75d2b313242e16e7fbec3 /js/tests/unit/modal.spec.js
parent2b4d0d166b58cabfb0384a2081d84e51df84e37f (diff)
downloadbootstrap-666fe596bf4629777f995dd79046b1db632ffdfb.tar.xz
bootstrap-666fe596bf4629777f995dd79046b1db632ffdfb.zip
Enable `unicorn/no-array-for-each` rule
Diffstat (limited to 'js/tests/unit/modal.spec.js')
-rw-r--r--js/tests/unit/modal.spec.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/tests/unit/modal.spec.js b/js/tests/unit/modal.spec.js
index 9632fa6cf..211c7140f 100644
--- a/js/tests/unit/modal.spec.js
+++ b/js/tests/unit/modal.spec.js
@@ -17,10 +17,9 @@ describe('Modal', () => {
clearBodyAndDocument()
document.body.classList.remove('modal-open')
- document.querySelectorAll('.modal-backdrop')
- .forEach(backdrop => {
- backdrop.remove()
- })
+ for (const backdrop of document.querySelectorAll('.modal-backdrop')) {
+ backdrop.remove()
+ }
})
beforeEach(() => {