diff options
author | Rohit Sharma <rohit2sharma95@gmail.com> | 2020-12-14 14:02:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 14:02:34 +0300 |
commit | ebce95dc60572ba1f7d65e9a8b5b2a4c0c8c4336 (patch) | |
tree | 88beb016a9d9304f308ad48f6a9753c1bb4459ff /js | |
parent | b85ca045e057d6f5982cc0cc9de4bfbf8b252a3d (diff) |
Tooltip - Add missing callback in async spec (#32465)
Diffstat (limited to 'js')
-rw-r--r-- | js/tests/unit/tooltip.spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/tests/unit/tooltip.spec.js b/js/tests/unit/tooltip.spec.js index 2b20d7e117..8224c34379 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() |