aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/checkboxradio/methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/checkboxradio/methods.js')
-rw-r--r--tests/unit/checkboxradio/methods.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/checkboxradio/methods.js b/tests/unit/checkboxradio/methods.js
index a749ef450..ec3a3f667 100644
--- a/tests/unit/checkboxradio/methods.js
+++ b/tests/unit/checkboxradio/methods.js
@@ -72,16 +72,15 @@ $.each( [ "checkbox", "radio" ], function( index, value ) {
} );
test( value + ": widget returns the label", function() {
+ expect( 1 );
+
var input = $( "#" + value + "-method-refresh" ),
label = $( "#" + value + "-method-refresh-label" );
- expect( 1 );
-
input.checkboxradio();
strictEqual( input.checkboxradio( "widget" )[ 0 ], label[ 0 ],
"widget method returns label" );
} );
-
} );
test( "Input wrapped in a label preserved on refresh", function() {