Add tests for #1122.

This commit is contained in:
Brad Dunbar
2012-04-24 11:33:15 -04:00
parent bf9e4f6335
commit 64205fbd1f

View File

@@ -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);
});
});