aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/progressbar/progressbar_methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/progressbar/progressbar_methods.js')
-rw-r--r--tests/unit/progressbar/progressbar_methods.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/unit/progressbar/progressbar_methods.js b/tests/unit/progressbar/progressbar_methods.js
index c665566b5..eaf0a5c76 100644
--- a/tests/unit/progressbar/progressbar_methods.js
+++ b/tests/unit/progressbar/progressbar_methods.js
@@ -1,10 +1,13 @@
-(function( $ ) {
+define( [
+ "jquery",
+ "ui/progressbar"
+], function( $ ) {
module( "progressbar: methods" );
-test( "destroy", function() {
+test( "destroy", function( assert ) {
expect( 1 );
- domEqual( "#progressbar", function() {
+ assert.domEqual( "#progressbar", function() {
$( "#progressbar" ).progressbar().progressbar( "destroy" );
});
});
@@ -36,4 +39,4 @@ test( "widget", function() {
strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" );
});
-}( jQuery ) );
+} );