mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
Switch from QUnit to Jasmine.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
const fixtureId = 'fixture'
|
||||
|
||||
export const getFixture = () => {
|
||||
let fixtureEl = document.getElementById(fixtureId)
|
||||
|
||||
if (!fixtureEl) {
|
||||
fixtureEl = document.createElement('div')
|
||||
fixtureEl.setAttribute('id', fixtureId)
|
||||
fixtureEl.style.display = 'none'
|
||||
document.body.appendChild(fixtureEl)
|
||||
}
|
||||
|
||||
return fixtureEl
|
||||
}
|
||||
|
||||
export const clearFixture = () => {
|
||||
const fixtureEl = getFixture()
|
||||
|
||||
fixtureEl.innerHTML = ''
|
||||
}
|
||||
Reference in New Issue
Block a user