diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-04-12 02:57:53 +0300 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2021-04-14 23:25:44 +0300 |
commit | 0d440b0e1457887349f8b9a9fb463d5b996ac405 (patch) | |
tree | 567a9ba33d1cd07c5006ffb8f4c7829d1fd83cde /js/tests/unit/util | |
parent | 2120a02b3c84bce7ad0a3aea4147eabc3e9313c9 (diff) |
Js: fix some tests
Diffstat (limited to 'js/tests/unit/util')
-rw-r--r-- | js/tests/unit/util/scrollbar.spec.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/tests/unit/util/scrollbar.spec.js b/js/tests/unit/util/scrollbar.spec.js index eb344a0aa6..aab3798eea 100644 --- a/js/tests/unit/util/scrollbar.spec.js +++ b/js/tests/unit/util/scrollbar.spec.js @@ -28,17 +28,19 @@ describe('ScrollBar', () => { afterAll(() => { fixtureEl.remove() - document.documentElement.style.overflowY = 'auto' - document.body.style.overflowY = 'auto' }) afterEach(() => { clearFixture() document.documentElement.removeAttribute('style') + document.body.removeAttribute('style') + document.body.removeAttribute('data-bs-padding-right') }) beforeEach(() => { document.documentElement.removeAttribute('style') + document.body.removeAttribute('style') + document.body.removeAttribute('data-bs-padding-right') }) describe('isBodyOverflowing', () => { |