mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +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)
|
||||
})
|
||||
|
||||
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">'
|
||||
|
||||
const tooltipEl = fixtureEl.querySelector('a')
|
||||
@ -299,6 +299,7 @@ describe('Tooltip', () => {
|
||||
tooltip.dispose()
|
||||
expect(tooltip.tip).toEqual(null)
|
||||
expect(Tooltip.getInstance(tooltipEl)).toEqual(null)
|
||||
done()
|
||||
})
|
||||
|
||||
tooltip.show()
|
||||
|
Loading…
Reference in New Issue
Block a user