From d41b27f43335cfb1a8ff49aeb121f992332429cf Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 12 Aug 2021 15:37:30 +0200 Subject: Cleaned up the settings implementation & renamed base_dir project-wide to git_dir --- test/int/api.int.test.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/int') diff --git a/test/int/api.int.test.ts b/test/int/api.int.test.ts index 202aa88..70cf263 100644 --- a/test/int/api.int.test.ts +++ b/test/int/api.int.test.ts @@ -19,12 +19,13 @@ describe("API", () => { app = buildApp({ host: host, port: port, - dev_port: 0, title: "Bob's cool projects", about: "All of my personal projects. Completely FOSS.", - base_dir: env.BASE_DIR, - production: false - }, ""); + git_dir: env.GIT_DIR, + dev: { + port: 0 + } + }); await app.listen(port); @@ -265,7 +266,7 @@ describe("API", () => { beforeAll(async() => { const body = new Readable({ read: () => null }); - let head = (await readFile(`${env.BASE_DIR}/${env.AVAIL_REPO}/FETCH_HEAD`)).toString(); + let head = (await readFile(`${env.GIT_DIR}/${env.AVAIL_REPO}/FETCH_HEAD`)).toString(); const find_head = /^[a-f0-9]+/.exec(head); -- cgit v1.2.3-18-g5258