Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit ffdf5e00
authored
Sep 12, 2016
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
How about we only require sqlite3 when we need to
1 parent
788507e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
test/integration/configuration.test.js
test/integration/configuration.test.js
View file @
ffdf5e0
...
@@ -7,12 +7,9 @@ var chai = require('chai')
...
@@ -7,12 +7,9 @@ var chai = require('chai')
,
Support
=
require
(
__dirname
+
'/support'
)
,
Support
=
require
(
__dirname
+
'/support'
)
,
dialect
=
Support
.
getTestDialect
()
,
dialect
=
Support
.
getTestDialect
()
,
Sequelize
=
Support
.
Sequelize
,
Sequelize
=
Support
.
Sequelize
,
sqlite3
=
require
(
'sqlite3'
)
,
fs
=
require
(
'fs'
)
,
fs
=
require
(
'fs'
)
,
path
=
require
(
'path'
);
,
path
=
require
(
'path'
);
describe
(
Support
.
getTestDialectTeaser
(
'Configuration'
),
function
()
{
describe
(
Support
.
getTestDialectTeaser
(
'Configuration'
),
function
()
{
describe
(
'Connections problems should fail with a nice message'
,
function
()
{
describe
(
'Connections problems should fail with a nice message'
,
function
()
{
it
(
'when we don\'t have the correct server details'
,
function
()
{
it
(
'when we don\'t have the correct server details'
,
function
()
{
...
@@ -149,6 +146,7 @@ describe(Support.getTestDialectTeaser('Configuration'), function() {
...
@@ -149,6 +146,7 @@ describe(Support.getTestDialectTeaser('Configuration'), function() {
});
});
if
(
dialect
===
'sqlite'
)
{
if
(
dialect
===
'sqlite'
)
{
var
sqlite3
=
require
(
'sqlite3'
);
it
(
'should respect READONLY / READWRITE connection modes'
,
function
()
{
it
(
'should respect READONLY / READWRITE connection modes'
,
function
()
{
var
p
=
path
.
join
(
__dirname
,
'../tmp'
,
'foo.sqlite'
);
var
p
=
path
.
join
(
__dirname
,
'../tmp'
,
'foo.sqlite'
);
var
createTableFoo
=
'CREATE TABLE foo (faz TEXT);'
;
var
createTableFoo
=
'CREATE TABLE foo (faz TEXT);'
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment