1
0
Fork 0
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:
GeoSot 2021-09-13 10:57:17 +03:00 committed by GitHub
parent 8c4f66733e
commit c9af4565fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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