mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Fix unit test for model.isNew()
This commit is contained in:
@@ -96,7 +96,8 @@ $(document).ready(function() {
|
||||
a = new Backbone.Model(attrs);
|
||||
ok(a.isNew(), "it should be new");
|
||||
attrs = { 'foo': 1, 'bar': 2, 'baz': 3, 'id': -5 };
|
||||
ok(a.isNew(), "any defined ID is legal, negative or positive");
|
||||
a = new Backbone.Model(attrs);
|
||||
ok(!a.isNew(), "any defined ID is legal, negative or positive");
|
||||
});
|
||||
|
||||
test("Model: get", function() {
|
||||
|
||||
Reference in New Issue
Block a user