aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorGeoSot <[email protected]>2022-06-08 22:35:09 +0300
committerGitHub <[email protected]>2022-06-08 22:35:09 +0300
commit37cf7d11b94edf5d6f239cd287b5aae000ede934 (patch)
treea4e427bf188cfd9fae4284c972af0153075637b6 /js/tests
parent90021886f62b06260bdec585d86f6fe6acf02b32 (diff)
downloadbootstrap-37cf7d11b94edf5d6f239cd287b5aae000ede934.tar.xz
bootstrap-37cf7d11b94edf5d6f239cd287b5aae000ede934.zip
Scrollspy: enable smooth-scroll behavior (#36528)
Diffstat (limited to 'js/tests')
-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 2cfc48039..2bdeb5830 100644
--- a/js/tests/unit/scrollspy.spec.js
+++ b/js/tests/unit/scrollspy.spec.js
@@ -889,7 +889,7 @@ describe('ScrollSpy', () => {
setTimeout(() => {
if (div.scrollTo) {
- expect(clickSpy).toHaveBeenCalledWith({ top: observable.offsetTop - div.offsetTop })
+ expect(clickSpy).toHaveBeenCalledWith({ top: observable.offsetTop - div.offsetTop, behavior: 'smooth' })
} else {
expect(clickSpy).toHaveBeenCalledWith(observable.offsetTop - div.offsetTop)
}