From ebce95dc60572ba1f7d65e9a8b5b2a4c0c8c4336 Mon Sep 17 00:00:00 2001 From: Rohit Sharma Date: Mon, 14 Dec 2020 16:32:34 +0530 Subject: [PATCH] Tooltip - Add missing callback in async spec (#32465) --- js/tests/unit/tooltip.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = '' 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() -- 2.47.2