diff options
| author | GeoSot <[email protected]> | 2022-06-08 22:35:09 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-08 22:35:09 +0300 |
| commit | 37cf7d11b94edf5d6f239cd287b5aae000ede934 (patch) | |
| tree | a4e427bf188cfd9fae4284c972af0153075637b6 /js/tests | |
| parent | 90021886f62b06260bdec585d86f6fe6acf02b32 (diff) | |
| download | bootstrap-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.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 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) } |
