Skip to content

Commit

Permalink
Add tests for jashkenas#1122.
Browse files Browse the repository at this point in the history
  • Loading branch information
braddunbar committed Apr 24, 2012
1 parent bf9e4f6 commit 64205fb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,4 +796,18 @@ $(document).ready(function() {
ok(model.isValid());
});

test("#1122 - clear does not alter options.", function() {
var model = new Backbone.Model();
var options = {};
model.clear(options);
ok(!options.unset);
});

test("#1122 - unset does not alter options.", function() {
var model = new Backbone.Model();
var options = {};
model.unset('x', options);
ok(!options.unset);
});

});

0 comments on commit 64205fb

Please sign in to comment.