diff --git a/test/collection.js b/test/collection.js index f497ab54..72b6afb9 100644 --- a/test/collection.js +++ b/test/collection.js @@ -637,14 +637,8 @@ $(document).ready(function() { test('#1412 - Trigger "sync" event for fetch also', 1, function() { var collection = new Backbone.Collection; - collection.sync = function(method, model, options) { - options.success(); - }; - var syncTriggered = false; - collection.on('sync', function() { - syncTriggered = true; - }); + collection.sync = function(method, model, options) { options.success(); }; + collection.on('sync', function() { ok(true); }); collection.fetch(); - ok(syncTriggered); }); }); diff --git a/test/model.js b/test/model.js index 07ea936d..7d110e26 100644 --- a/test/model.js +++ b/test/model.js @@ -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); }); });