0
0
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:
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)
})
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()