0
0
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:
Rohit Sharma 2020-12-14 16:32:34 +05:30 committed by GitHub
parent b85ca045e0
commit ebce95dc60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()