aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/tooltip.spec.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-12-15 11:24:13 +0200
committerXhmikosR <[email protected]>2020-12-15 11:24:13 +0200
commitea9c7e735b2593229a504d53e986eb38cacc7066 (patch)
tree5a872f8f959232592bb0aa34cc5b4dbb7ecbc364 /js/tests/unit/tooltip.spec.js
parente5933330e1e3c363d240035d67f97ec094577d91 (diff)
parentcc3a5cf79a5afd73a97dce380f93e0d192a34456 (diff)
downloadbootstrap-rohit/main/modal-with-sticky.tar.xz
bootstrap-rohit/main/modal-with-sticky.zip
Merge remote-tracking branch 'remotes/origin/main' into rohit/main/modal-with-stickyrohit/main/modal-with-sticky
Diffstat (limited to 'js/tests/unit/tooltip.spec.js')
-rw-r--r--js/tests/unit/tooltip.spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/tests/unit/tooltip.spec.js b/js/tests/unit/tooltip.spec.js
index 2b20d7e11..8224c3437 100644
--- a/js/tests/unit/tooltip.spec.js
+++ b/js/tests/unit/tooltip.spec.js
@@ -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()