diff options
| author | XhmikosR <[email protected]> | 2021-09-11 21:56:28 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2021-09-28 19:09:04 +0300 |
| commit | a74f33c40649711293a009ada8b7c21330a999a5 (patch) | |
| tree | bc0135f3bcfd45ed9a0a140038cd077e8e3c2317 /js/tests/unit/scrollspy.spec.js | |
| parent | a82d31f4329c4dd8fabf258d807917dfed4dcca1 (diff) | |
| download | bootstrap-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.js | 2 |
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() |
