Skip to content

Commit

Permalink
Added a few more cases for the test
Browse files Browse the repository at this point in the history
  • Loading branch information
caseywebdev committed May 24, 2012
1 parent 4a0acde commit c016a1c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,14 @@ $(document).ready(function() {
var Col = Backbone.Collection.extend({
comparator: function(model){ return model.id; }
});
var col = new Col(null, {comparator: false});
ok(!col.comparator);
var col = new Col
var colFalse = new Col(null, {comparator: false});
var colNull = new Col(null, {comparator: null});
var colUndefined = new Col(null, {comparator: undefined});
ok(col.comparator);
ok(!colFalse.comparator);
ok(!colNull.comparator);
ok(colUndefined.comparator);
});

});

0 comments on commit c016a1c

Please sign in to comment.