2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03: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
+4 -2
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', () => {