mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
tests: fix lint warning (#34950)
This commit is contained in:
parent
8c4f66733e
commit
c9af4565fd
1 changed files with 2 additions and 3 deletions
|
@ -2,7 +2,7 @@ import Collapse from '../../src/collapse'
|
|||
import EventHandler from '../../src/dom/event-handler'
|
||||
|
||||
/** Test helpers */
|
||||
import { getFixture, clearFixture, jQueryMock } from '../helpers/fixture'
|
||||
import { clearFixture, getFixture, jQueryMock } from '../helpers/fixture'
|
||||
|
||||
describe('Collapse', () => {
|
||||
let fixtureEl
|
||||
|
@ -294,14 +294,13 @@ describe('Collapse', () => {
|
|||
' </div>'
|
||||
].join('')
|
||||
|
||||
// const btn = fixtureEl.querySelector('[data-bs-target="#collapseOne"]')
|
||||
const el = fixtureEl.querySelector('#collapseOne')
|
||||
const activeTabPane = fixtureEl.querySelector('#nav-home')
|
||||
const collapse = new Collapse(el)
|
||||
let times = 1
|
||||
|
||||
el.addEventListener('hidden.bs.collapse', () => {
|
||||
setTimeout(() => collapse.show(), 10)
|
||||
collapse.show()
|
||||
})
|
||||
|
||||
el.addEventListener('shown.bs.collapse', () => {
|
||||
|
|
Loading…
Reference in a new issue