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

Commit e79089a0 by Chia-liang Kao

Use env dialect for migrator and sequelize spec tests.

1 parent e24091f2
Showing with 2 additions and 1 deletions
...@@ -28,7 +28,7 @@ describe(Helpers.getTestDialectTeaser("Migrator"), function() { ...@@ -28,7 +28,7 @@ describe(Helpers.getTestDialectTeaser("Migrator"), function() {
.error(function(err) { console.log(err) }) .error(function(err) { console.log(err) })
}.bind(this) }.bind(this)
Helpers.initTests({ onComplete: done, context: this }) Helpers.initTests({ dialect: dialect, onComplete: done, context: this })
}) })
it("as", function() { it("as", function() {
......
...@@ -10,6 +10,7 @@ buster.spec.expose() ...@@ -10,6 +10,7 @@ buster.spec.expose()
describe(Helpers.getTestDialectTeaser("Sequelize"), function() { describe(Helpers.getTestDialectTeaser("Sequelize"), function() {
before(function(done) { before(function(done) {
Helpers.initTests({ Helpers.initTests({
dialect: dialect,
beforeComplete: function(sequelize) { this.sequelize = sequelize }.bind(this), beforeComplete: function(sequelize) { this.sequelize = sequelize }.bind(this),
onComplete: done onComplete: done
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!