Skip to content

Commit

Permalink
tests: fix lint warning (#34950)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Sep 13, 2021
1 parent 8c4f667 commit c9af456
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/tests/unit/collapse.spec.js
Expand Up @@ -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
Expand Down Expand Up @@ -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', () => {
Expand Down

0 comments on commit c9af456

Please sign in to comment.