From 2819b2672d604d692dc53c94bb3020c6a03d61bc Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 25 Jul 2021 11:23:36 +0200 Subject: Added hasAssertions & a comment to the git-upload-pack http unit test --- test/unit/git-http.unit.test.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/unit') diff --git a/test/unit/git-http.unit.test.ts b/test/unit/git-http.unit.test.ts index f182e73..92feefc 100644 --- a/test/unit/git-http.unit.test.ts +++ b/test/unit/git-http.unit.test.ts @@ -65,11 +65,15 @@ describe("Git HTTP backend", () => { describe("git-upload-pack", () => { it("Should make a valid response", async () => { + expect.hasAssertions(); + await app.listen(port); const head = /^[a-f0-9]+/.exec((await readFile(`${env.BASE_DIR}/${env.AVAIL_REPO}/FETCH_HEAD`)).toString())[0]; const data = `0098want ${head} multi_ack_detailed no-done side-band-64k thin-pack ofs-delta deepen-since deepen-not agent=git/2.32.0\n00000009done`; + // Send a post request to git-upload-pack with curl + // // I did it this way because i just couldn't get chunked responses // to work with LightMyRequest or Supertest const res = new Promise((resolve: (value: Record) => void, reject: (value: ExecException) => void) => { -- cgit v1.2.3-18-g5258