diff options
| author | Rohit Sharma <[email protected]> | 2020-12-14 16:32:34 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-14 13:02:34 +0200 |
| commit | ebce95dc60572ba1f7d65e9a8b5b2a4c0c8c4336 (patch) | |
| tree | 88beb016a9d9304f308ad48f6a9753c1bb4459ff /js | |
| parent | b85ca045e057d6f5982cc0cc9de4bfbf8b252a3d (diff) | |
| download | bootstrap-ebce95dc60572ba1f7d65e9a8b5b2a4c0c8c4336.tar.xz bootstrap-ebce95dc60572ba1f7d65e9a8b5b2a4c0c8c4336.zip | |
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 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() |
