Skip to content

Commit dd25699

Browse files
committed
Tests: Rename legacy setup/teardown hooks to beforeEach/afterEach
1 parent f183af4 commit dd25699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/controlgroup/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ QUnit.test( "Single controlgroup button - vertical", function( assert ) {
161161
} );
162162

163163
QUnit.module( "Controlgroup: Non-empty class key", {
164-
setup: function() {
164+
beforeEach: function() {
165165
this.classKey = $.ui.selectmenu.prototype.options.classes[ "ui-selectmenu-button-closed" ];
166166
$.ui.selectmenu.prototype.options.classes[ "ui-selectmenu-button-closed" ] =
167167
"something-custom";
168168
},
169-
teardown: function() {
169+
afterEach: function() {
170170
$.ui.selectmenu.prototype.options.classes[ "ui-selectmenu-button-closed" ] = this.classKey;
171171
}
172172
} );

0 commit comments

Comments
 (0)