Fix test db config

This commit is contained in:
ruihildt 2019-08-02 01:32:51 +02:00
parent 47f7987d09
commit 33d5817e44
5 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -65,4 +65,4 @@ typings/
# Databases
# data/sleep-tracker.db3
# data/test.db3
data/test.db3

View File

@ -3,6 +3,6 @@ require("dotenv").config();
const knex = require('knex');
const config = require('../knexfile');
const environment = process.env.DB_ENV || 'test';
const environment = process.env.DB_ENV;
module.exports = knex(config[environment]);

Binary file not shown.

Binary file not shown.

View File

@ -21,7 +21,7 @@ module.exports = {
}
},
test: {
testing: {
client: "sqlite3",
useNullAsDefault: true,
connection: {