aboutsummaryrefslogtreecommitdiff
path: root/src/routes.test.ts
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2021-09-27 19:18:49 +0000
committerKevin J Hoerr <kjhoerr@protonmail.com>2021-09-27 19:18:49 +0000
commit54e479f0db78ed3bfc0be94e9d7ecdb8c00ca187 (patch)
tree7355c1b0182bc67c050586aee7d6be20a676130e /src/routes.test.ts
parent0ff6234206437191d7b405cf91e21f854e7587bf (diff)
downloadao-coverage-54e479f0db78ed3bfc0be94e9d7ecdb8c00ca187.tar.gz
ao-coverage-54e479f0db78ed3bfc0be94e9d7ecdb8c00ca187.tar.bz2
ao-coverage-54e479f0db78ed3bfc0be94e9d7ecdb8c00ca187.zip
Test hc endpoint; remove unreachable code
Diffstat (limited to 'src/routes.test.ts')
-rw-r--r--src/routes.test.ts6
1 files changed, 6 insertions, 0 deletions
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")