From 54e479f0db78ed3bfc0be94e9d7ecdb8c00ca187 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Mon, 27 Sep 2021 19:18:49 +0000 Subject: Test hc endpoint; remove unreachable code --- src/routes.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/routes.test.ts') diff --git a/src/routes.test.ts b/src/routes.test.ts index 1381abb..151bf90 100644 --- a/src/routes.test.ts +++ b/src/routes.test.ts @@ -448,6 +448,12 @@ describe("Uploads", () => { } }); + describe("GET /v1/health-check", () => { + it("should return 200 OK", async () => { + await (await request()).get(`/v1/health-check`).send().expect(200); + }); + }); + describe("POST /v1/:org/:repo/:branch/:commit.html", () => { const data = fs.promises.readFile( path.join(__dirname, "..", "example_reports", "tarpaulin-report.html") -- cgit