mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Tooltip - Add missing callback in async spec (#32465)
This commit is contained in:
parent
b85ca045e0
commit
ebce95dc60
@ -286,7 +286,7 @@ describe('Tooltip', () => {
|
|||||||
expect(Tooltip.getInstance(tooltipEl)).toEqual(null)
|
expect(Tooltip.getInstance(tooltipEl)).toEqual(null)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should destroy a tooltip after it is shown and hidden', () => {
|
it('should destroy a tooltip after it is shown and hidden', done => {
|
||||||
fixtureEl.innerHTML = '<a href="#" rel="tooltip" title="Another tooltip">'
|
fixtureEl.innerHTML = '<a href="#" rel="tooltip" title="Another tooltip">'
|
||||||
|
|
||||||
const tooltipEl = fixtureEl.querySelector('a')
|
const tooltipEl = fixtureEl.querySelector('a')
|
||||||
@ -299,6 +299,7 @@ describe('Tooltip', () => {
|
|||||||
tooltip.dispose()
|
tooltip.dispose()
|
||||||
expect(tooltip.tip).toEqual(null)
|
expect(tooltip.tip).toEqual(null)
|
||||||
expect(Tooltip.getInstance(tooltipEl)).toEqual(null)
|
expect(Tooltip.getInstance(tooltipEl)).toEqual(null)
|
||||||
|
done()
|
||||||
})
|
})
|
||||||
|
|
||||||
tooltip.show()
|
tooltip.show()
|
||||||
|
Loading…
Reference in New Issue
Block a user