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:
@@ -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', () => {
|
||||
|
Reference in New Issue
Block a user