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

Commit b606fd70 by Sascha Depold

clear the database before the tests

1 parent 7c30a7e8
Showing with 8 additions and 3 deletions
...@@ -3533,10 +3533,15 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -3533,10 +3533,15 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
describe('references', function() { describe('references', function() {
this.timeout(3000) this.timeout(3000)
beforeEach(function(done) { beforeEach(function(done) {
this.Author = this.sequelize.define('author', { firstName: Sequelize.STRING }) var self = this
this.Author.sync({ force: true }).success(function() {
done() Support.clearDatabase(this.sequelize, function() {
self.Author = self.sequelize.define('author', { firstName: Sequelize.STRING })
self.Author.sync({ force: true }).success(function() {
done()
})
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!