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

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