aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/droppable/droppable_options.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/droppable/droppable_options.js')
-rw-r--r--tests/unit/droppable/droppable_options.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/unit/droppable/droppable_options.js b/tests/unit/droppable/droppable_options.js
index 047858abf..9a4be076d 100644
--- a/tests/unit/droppable/droppable_options.js
+++ b/tests/unit/droppable/droppable_options.js
@@ -22,17 +22,18 @@ test( "activeClass", function() {
ok(false, 'missing test - untested code is broken code');
});
*/
-test( "{ addClasses: true }, default", function() {
+test( "{ addClasses: true }, default", function( assert ) {
expect( 1 );
var el = $( "<div />" ).droppable({ addClasses: true });
- ok( el.is( ".ui-droppable" ), "'ui-droppable' class added" );
+ assert.hasClasses( el, "ui-droppable" );
el.droppable( "destroy" );
});
-test( "{ addClasses: false }", function() {
+test( "{ addClasses: false }", function( assert ) {
expect( 1 );
var el = $( "<div />" ).droppable({ addClasses: false });
- ok( !el.is( ".ui-droppable" ), "'ui-droppable' class not added" );
+
+ assert.lacksClasses( el, "ui-droppable" );
el.droppable( "destroy" );
});