2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Enable unicorn/no-array-for-each rule

This commit is contained in:
XhmikosR
2021-07-30 09:28:51 +03:00
parent 2b4d0d166b
commit 666fe596bf
23 changed files with 132 additions and 117 deletions
+3 -3
View File
@@ -211,14 +211,14 @@ describe('Carousel', () => {
spyOn(carousel, '_triggerSlideEvent')
carousel._isSliding = true;
carousel._isSliding = true
['ArrowLeft', 'ArrowRight'].forEach(key => {
for (const key of ['ArrowLeft', 'ArrowRight']) {
const keydown = createEvent('keydown')
keydown.key = key
carouselEl.dispatchEvent(keydown)
})
}
expect(carousel._triggerSlideEvent).not.toHaveBeenCalled()
})