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

Commit ffdf5e00 by Jan Aagaard Meier

How about we only require sqlite3 when we need to

1 parent 788507e5
Showing with 1 additions and 3 deletions
......@@ -7,12 +7,9 @@ var chai = require('chai')
, Support = require(__dirname + '/support')
, dialect = Support.getTestDialect()
, Sequelize = Support.Sequelize
, sqlite3 = require('sqlite3')
, fs = require('fs')
, path = require('path');
describe(Support.getTestDialectTeaser('Configuration'), function() {
describe('Connections problems should fail with a nice message', function() {
it('when we don\'t have the correct server details', function() {
......@@ -149,6 +146,7 @@ describe(Support.getTestDialectTeaser('Configuration'), function() {
});
if (dialect === 'sqlite') {
var sqlite3 = require('sqlite3');
it('should respect READONLY / READWRITE connection modes', function() {
var p = path.join(__dirname, '../tmp', 'foo.sqlite');
var createTableFoo = 'CREATE TABLE foo (faz TEXT);';
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!