diff options
| -rw-r--r-- | src/routes.test.ts | 6 | ||||
| -rw-r--r-- | src/routes.ts | 5 |
2 files changed, 6 insertions, 5 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") diff --git a/src/routes.ts b/src/routes.ts index 7d2c2fb..a8360ca 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -106,11 +106,6 @@ export default (metadata: Metadata): Router => { } }); req.on("end", async () => { - // Ignore large requests - if (contents.length > limit) { - return res.status(413).send(Messages.FileTooLarge); - } - const formatter = formats.getFormat(format); const identity = { organization: org, |
