Tweak tests a bit.

This commit is contained in:
Brad Dunbar
2012-06-15 11:30:38 -04:00
parent f24ca5a0ed
commit 4ecc161ecf
2 changed files with 4 additions and 16 deletions

View File

@@ -833,14 +833,8 @@ $(document).ready(function() {
test('#1412 - Trigger "sync" event for fetch also', 1, function() {
var model = new Backbone.Model;
model.sync = function(method, model, options) {
options.success();
};
var syncTriggered = false;
model.on('sync', function() {
syncTriggered = true;
});
model.sync = function(method, model, options) { options.success(); };
model.on('sync', function() { ok(true); });
model.fetch();
ok(syncTriggered);
});
});