aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/button/button_methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/button/button_methods.js')
-rw-r--r--tests/unit/button/button_methods.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/button/button_methods.js b/tests/unit/button/button_methods.js
index d4d92cead..be36096b2 100644
--- a/tests/unit/button/button_methods.js
+++ b/tests/unit/button/button_methods.js
@@ -1,13 +1,13 @@
-/*
- * button_methods.js
- */
-(function($) {
+define( [
+ "jquery",
+ "ui/button"
+], function( $ ) {
module("button: methods");
-test("destroy", function() {
+test("destroy", function( assert ) {
expect( 1 );
- domEqual( "#button", function() {
+ assert.domEqual( "#button", function() {
$( "#button" ).button().button( "destroy" );
});
});
@@ -70,4 +70,4 @@ test( "refresh: buttonset should turn added elements into button widgets", funct
equal( checkboxButtonset.find( ":ui-button" ).length, 4, "checkbox" );
});
-})(jQuery);
+} );