Skip to content

Commit

Permalink
updated test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfun committed Apr 22, 2013
1 parent ef12fdc commit 0cba3d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/collection.js
Expand Up @@ -1119,10 +1119,12 @@ $(document).ready(function() {
ok( collection.length === 0 );
});

test("`add` an array of `false` is a no-op", 1, function() {
test("`add` an array of `false` is a no-op", 2, function() {
var collection = new Backbone.Collection();
collection.add( [ false, false, false ] );
collection.add( [ false, false, false, undefined, undefined ] );
ok( collection.length === 0 );
collection.add( [false, undefined, {} ] );
ok( collection.length === 1 );
});

});

0 comments on commit 0cba3d0

Please sign in to comment.