diff options
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() |
