aboutsummaryrefslogtreecommitdiff
path: root/src/FileRouter.ts
diff options
context:
space:
mode:
authorTom Harley2018-03-27 03:50:17 +0100
committerTom Harley2018-03-27 03:50:17 +0100
commitea1ee67bdd02b2ea727c09cfef1784a61aa934f4 (patch)
tree6bf1e8a086bd5250416307501147ee4fe942b87b /src/FileRouter.ts
parentsmall fix (diff)
downloadmedicine-ea1ee67bdd02b2ea727c09cfef1784a61aa934f4.tar.gz
medicine-ea1ee67bdd02b2ea727c09cfef1784a61aa934f4.zip

Centralise test configuration and introduce SQLite

Tests now take their configuration from a new file test-db.ts. Additionally, this configuration sets up and uses an in-memory SQLite3 database for testing, to avoid writing to disk and to prevent edits to a current database.

Diffstat (limited to 'src/FileRouter.ts')
-rw-r--r--src/FileRouter.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/FileRouter.ts b/src/FileRouter.ts
index 1cef85d..4dc3105 100644
--- a/src/FileRouter.ts
+++ b/src/FileRouter.ts
@@ -447,7 +447,6 @@ const postProjectName: Middleware =
});
promise = file.save();
project = new Project({
- uuid: uuid.generate(),
name: req.params.project_name,
rootFolder: file
});