From 3bb05b5fbb6bbf247923a53829b53a27f1b6972b Mon Sep 17 00:00:00 2001 From: Heinrich Fenkart Date: Thu, 26 Feb 2015 08:20:42 +0100 Subject: Unit tests: Use new names of module hooks Refs #15893 --- js/tests/unit/collapse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/tests/unit/collapse.js') diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js index 1616fe48b..c1a41a45f 100644 --- a/js/tests/unit/collapse.js +++ b/js/tests/unit/collapse.js @@ -8,11 +8,11 @@ $(function () { }) QUnit.module('collapse', { - setup: function () { + beforeEach: function () { // Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode $.fn.bootstrapCollapse = $.fn.collapse.noConflict() }, - teardown: function () { + afterEach: function () { $.fn.collapse = $.fn.bootstrapCollapse delete $.fn.bootstrapCollapse } -- cgit v1.2.3