1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-16 18:44:01 +02:00

Js: fix some tests

This commit is contained in:
GeoSot
2021-04-12 02:57:53 +03:00
committed by Mark Otto
parent 2120a02b3c
commit 0d440b0e14
3 changed files with 23 additions and 13 deletions

View File

@@ -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', () => {