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

Commit 73589165 by Jack

Declared keys locally in describeForeignKeys test

1 parent 7cc86a49
Showing with 3 additions and 3 deletions
...@@ -291,9 +291,9 @@ describe(Support.getTestDialectTeaser("QueryInterface"), function () { ...@@ -291,9 +291,9 @@ describe(Support.getTestDialectTeaser("QueryInterface"), function () {
this.sequelize.query(this.queryInterface.QueryGenerator.getForeignKeysQuery('hosts', this.sequelize.config.database)).complete(function(err, fks) { this.sequelize.query(this.queryInterface.QueryGenerator.getForeignKeysQuery('hosts', this.sequelize.config.database)).complete(function(err, fks) {
expect(err).to.be.null expect(err).to.be.null
expect(fks).to.have.length(3) expect(fks).to.have.length(3)
keys = Object.keys(fks[0]) var keys = Object.keys(fks[0]),
keys2 = Object.keys(fks[1]) keys2 = Object.keys(fks[1]),
keys3 = Object.keys(fks[2]) keys3 = Object.keys(fks[2])
if (dialect === "postgres" || dialect === "postgres-native") { if (dialect === "postgres" || dialect === "postgres-native") {
expect(keys).to.have.length(6) expect(keys).to.have.length(6)
expect(keys2).to.have.length(7) expect(keys2).to.have.length(7)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!