From fd2013a7bf4129b05080f01ef199d69b9ef9ec68 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Mon, 27 Apr 2020 18:17:06 -0400 Subject: 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. --- src/routes.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/routes.test.ts') 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 => { const app = express(); - app.use(routes(mockMeta as Metadata)); + app.use(routes(mockMeta as Metadata, path.join(__dirname, "..", "public"))); return _request(app); }; -- cgit