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

Commit bca7b0de by sdepold

delete all tables in query interface

1 parent 681a3c4b
Showing with 5 additions and 4 deletions
......@@ -10,12 +10,13 @@ describe('QueryInterface', function() {
beforeEach(function() {
interface = sequelize.getQueryInterface()
Helpers.async(function(done) {
interface.dropAllTables().success(done).error(function(err) { console.log(err) })
})
Helpers.dropAllTables()
})
afterEach(function() { interface = null })
afterEach(function() {
interface = null
Helpers.dropAllTables()
})
it("should drop all tables", function() {
Helpers.async(function(done) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!