aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/checkboxradio/methods.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-10-27 16:05:52 -0400
committerScott González <scott.gonzalez@gmail.com>2015-10-27 16:05:52 -0400
commitd4b0699578f5cfc3c69be13af64e2440214b112e (patch)
tree405fe3f9b21c23c61da106ae46da5a0e0e63d853 /tests/unit/checkboxradio/methods.js
parent17b5386e8cb48c522ddb581a001fef5434e57f9a (diff)
downloadjquery-ui-d4b0699578f5cfc3c69be13af64e2440214b112e.tar.gz
jquery-ui-d4b0699578f5cfc3c69be13af64e2440214b112e.zip
Checkboxradio: Test cleanup
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() {