不要怂,就是干,撸起袖子干!

Commit ef3727ad by Mick Hansen

feat(promises): add back afterEach and .return(self) on sync

1 parent 9dae02d4
Showing with 3 additions and 3 deletions
......@@ -342,7 +342,7 @@ module.exports = (function() {
if (options.force) {
return self.drop(options).then(function () {
return doQuery();
return doQuery().return(self);
});
} else {
return doQuery().return(this)
......
......@@ -1566,13 +1566,13 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
/*afterEach(function() {
afterEach(function() {
var self = this
return this.sequelize.getQueryInterface().dropTable('posts', { force: true }).then(function() {
return self.sequelize.getQueryInterface().dropTable('authors', { force: true })
})
})*/
})
it('uses an existing dao factory and references the author table', function(done) {
var self = this
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!