aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/carousel.js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2018-06-17 15:28:42 +0200
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commit6b0808354d212272030e598f4e8ea9e2bce7703a (patch)
treeb0bcef2ba25f29b8f863eb5cbd9d3c6bc1120add /js/tests/unit/carousel.js
parent8010c010e9f15ec04e291a07316f93bda5b46f19 (diff)
downloadbootstrap-6b0808354d212272030e598f4e8ea9e2bce7703a.tar.xz
bootstrap-6b0808354d212272030e598f4e8ea9e2bce7703a.zip
fix(unit-test): dropdown, collapse and carousel
Diffstat (limited to 'js/tests/unit/carousel.js')
-rw-r--r--js/tests/unit/carousel.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js
index 6533454a6..9016f61ab 100644
--- a/js/tests/unit/carousel.js
+++ b/js/tests/unit/carousel.js
@@ -676,7 +676,7 @@ $(function () {
$template.bootstrapCarousel()
var done = assert.async()
- function handlerKeydown() {
+ function handlerKeydown(event) {
assert.strictEqual(event.defaultPrevented, false)
$template[0].removeEventListener('keydown', handlerKeydown)
}
@@ -687,7 +687,7 @@ $(function () {
keyDown.which = 40
$template[0].dispatchEvent(keyDown)
- function handlerKeydown2() {
+ function handlerKeydown2(event) {
assert.strictEqual(event.defaultPrevented, false)
$template[0].addEventListener('keydown', handlerKeydown2)
done()