aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete/autocomplete_methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/autocomplete/autocomplete_methods.js')
-rw-r--r--tests/unit/autocomplete/autocomplete_methods.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/autocomplete/autocomplete_methods.js b/tests/unit/autocomplete/autocomplete_methods.js
index 44e74cb69..8df5bd4b2 100644
--- a/tests/unit/autocomplete/autocomplete_methods.js
+++ b/tests/unit/autocomplete/autocomplete_methods.js
@@ -4,7 +4,11 @@
(function($) {
-module("autocomplete: methods");
+module("autocomplete: methods", {
+ teardown: function() {
+ $( ":ui-autocomplete" ).autocomplete( "destroy" );
+ }
+});
test("destroy", function() {
var beforeHtml = $("#autocomplete").parent().html();