Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tests: Rename legacy setup/teardown hooks to beforeEach/afterEach
  • Loading branch information
mgol committed May 16, 2020
commit dd25699969e24a782a71f029e55d66b25521a446
4 changes: 2 additions & 2 deletions tests/unit/controlgroup/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ QUnit.test( "Single controlgroup button - vertical", function( assert ) {
} );

QUnit.module( "Controlgroup: Non-empty class key", {
setup: function() {
beforeEach: function() {
this.classKey = $.ui.selectmenu.prototype.options.classes[ "ui-selectmenu-button-closed" ];
$.ui.selectmenu.prototype.options.classes[ "ui-selectmenu-button-closed" ] =
"something-custom";
},
teardown: function() {
afterEach: function() {
$.ui.selectmenu.prototype.options.classes[ "ui-selectmenu-button-closed" ] = this.classKey;
}
} );
Expand Down