diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2020-04-27 18:17:06 -0400 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2020-04-27 18:17:06 -0400 |
| commit | fd2013a7bf4129b05080f01ef199d69b9ef9ec68 (patch) | |
| tree | 8f8eae08b2884a0e066e01138aa6a104625d952f /src/routes.test.ts | |
| parent | 32db5f6e5e8b6f6d2baffbec44cc34daedd24533 (diff) | |
| download | ao-coverage-fd2013a7bf4129b05080f01ef199d69b9ef9ec68.tar.gz ao-coverage-fd2013a7bf4129b05080f01ef199d69b9ef9ec68.tar.bz2 ao-coverage-fd2013a7bf4129b05080f01ef199d69b9ef9ec68.zip | |
Refactor startup to passthrough values
Even more refactoring - however there were some small
troubles using path in the nested scripts/files, so referencing
them via the index should be a bit more stable. Plus, the config
unit tests won't just exit because of configOrError constants
strewn about the file.
Diffstat (limited to 'src/routes.test.ts')
| -rw-r--r-- | src/routes.test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes.test.ts b/src/routes.test.ts index 90084f6..3a6bd26 100644 --- a/src/routes.test.ts +++ b/src/routes.test.ts @@ -38,7 +38,7 @@ const mock = ( const request = (mockMeta: MetadataMockType = mock()): SuperTest<Test> => { const app = express(); - app.use(routes(mockMeta as Metadata)); + app.use(routes(mockMeta as Metadata, path.join(__dirname, "..", "public"))); return _request(app); }; |
