aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/scrollspy.spec.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-09-11 21:56:28 +0300
committerXhmikosR <[email protected]>2021-09-28 19:09:04 +0300
commita74f33c40649711293a009ada8b7c21330a999a5 (patch)
treebc0135f3bcfd45ed9a0a140038cd077e8e3c2317 /js/tests/unit/scrollspy.spec.js
parenta82d31f4329c4dd8fabf258d807917dfed4dcca1 (diff)
downloadbootstrap-main-xmr-js-wip.tar.xz
bootstrap-main-xmr-js-wip.zip
Prefer using function expressionsmain-xmr-js-wip
Diffstat (limited to 'js/tests/unit/scrollspy.spec.js')
-rw-r--r--js/tests/unit/scrollspy.spec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/unit/scrollspy.spec.js b/js/tests/unit/scrollspy.spec.js
index ad44d5b3c..66e4cd7bf 100644
--- a/js/tests/unit/scrollspy.spec.js
+++ b/js/tests/unit/scrollspy.spec.js
@@ -15,7 +15,7 @@ describe('ScrollSpy', () => {
const paddingTop = 5
const scrollHeight = Math.ceil(contentEl.scrollTop + Manipulator.position(target).top) + paddingTop
- function listener() {
+ const listener = () => {
expect(element.classList.contains('active')).toEqual(true)
contentEl.removeEventListener('scroll', listener)
expect(scrollSpy._process).toHaveBeenCalled()