From 9dc2bf9737ba9c877b7b9f6e892100580adc0f2e Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Thu, 30 Mar 2023 10:09:12 +0200 Subject: Tests: Fix tooltip tests by destroying tooltips Some tests were not properly destroying tooltips which made tests start to fail with the new QUnit. Ref gh-2157 --- tests/unit/tooltip/deprecated.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/unit/tooltip/deprecated.js') diff --git a/tests/unit/tooltip/deprecated.js b/tests/unit/tooltip/deprecated.js index 4d3975e84..cc4dcf0ee 100644 --- a/tests/unit/tooltip/deprecated.js +++ b/tests/unit/tooltip/deprecated.js @@ -16,6 +16,8 @@ QUnit.test( "tooltipClass", function( assert ) { tooltipClass: "custom" } ).tooltip( "open" ); assert.hasClasses( $( "#" + element.data( "ui-tooltip-id" ) ), "custom" ); + + element.tooltip( "destroy" ); } ); } ); -- cgit v1.2.3