Testing #72

Merged
KevinMidboe merged 23 commits from testing into master 2018-01-09 15:56:45 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 2623649c5d - Show all commits

View File

@@ -1,4 +1,3 @@
DROP TABLE IF EXISTS user;
DROP TABLE IF EXISTS search_history;
DROP TABLE IF EXISTS list;
DROP TABLE IF EXISTS list_content;
DROP TABLE IF EXISTS requests;

View File

@@ -3,7 +3,8 @@ const SqliteDatabase = require('src/database/sqliteDatabase');
function resetDatabase() {
const database = new SqliteDatabase(':memory:');
return Promise.resolve()
.then(() => database.connect())
.then(() => database.connect());
.then(() => database.tearDown());
.then(() => database.setUp());
}