aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-25 11:23:36 +0200
committerHampusM <hampus@hampusmat.com>2021-07-25 11:23:36 +0200
commit2819b2672d604d692dc53c94bb3020c6a03d61bc (patch)
tree35ffa4829f0464aa08d0cbfba68554049d1621d8 /test
parent0a10c326d9e56154686ec94bc53bbabe6cd54341 (diff)
Added hasAssertions & a comment to the git-upload-pack http unit test
Diffstat (limited to 'test')
-rw-r--r--test/unit/git-http.unit.test.ts4
1 files changed, 4 insertions, 0 deletions
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<string, Buffer>) => void, reject: (value: ExecException) => void) => {