Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorRohit Sharma <rohit2sharma95@gmail.com>2020-12-14 14:02:34 +0300
committerGitHub <noreply@github.com>2020-12-14 14:02:34 +0300
commitebce95dc60572ba1f7d65e9a8b5b2a4c0c8c4336 (patch)
tree88beb016a9d9304f308ad48f6a9753c1bb4459ff /js
parentb85ca045e057d6f5982cc0cc9de4bfbf8b252a3d (diff)
Tooltip - Add missing callback in async spec (#32465)
Diffstat (limited to '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 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()