Skip to content

Commit

Permalink
Changes test spec_helper.dropSync to return any sync error to callback
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Jul 8, 2013
1 parent 17f6b7c commit 1df422a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/support/spec_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ module.exports.dropSync = function (models, done) {
item.drop(function (err) {
if (err) throw err

item.sync(function (err) {
if (err) throw err

return cb();
});
item.sync(cb);
});
}, done);
};

0 comments on commit 1df422a

Please sign in to comment.