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:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user