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

Commit 8fd3fdc9 by Sascha Depold

fixed tests for sqlite

1 parent 76c8345d
Showing with 8 additions and 0 deletions
......@@ -8,6 +8,7 @@ var chai = require('chai')
, config = require(__dirname + "/config/config")
, moment = require('moment')
, Transaction = require(__dirname + '/../lib/transaction')
, path = require('path')
chai.Assertion.includeStack = true
......@@ -474,6 +475,13 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
})
describe('transaction', function() {
if (dialect === 'sqlite') {
beforeEach(function() {
this.sequelize.options.storage = path.join(__dirname, 'tmp', 'db.sqlite')
this.sequelize = new Sequelize(this.sequelize.config.datase, null, null, this.sequelize.options)
})
}
it('is a transaction method available', function() {
expect(Support.Sequelize).to.respondTo('transaction')
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!