Skip to content

Commit

Permalink
add back in peet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny-Dasilva committed Dec 1, 2024
1 parent a00be6a commit fe85092
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/forceHTTP1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ describe("CycleTLS HTTP Version Tests", () => {
expect(fullResp.http_version).toBe("h2");
});

// test("Should force HTTP/1.1 when specified", async () => {
// const response = await cycleTLS(
// "https://tls.peet.ws/api/all",
// {
// body: "",
// ja3: ja3,
// userAgent: userAgent,
// forceHTTP1: true,
// },
// "get"
// );
test("Should force HTTP/1.1 when specified", async () => {
const response = await cycleTLS(
"https://tls.peet.ws/api/all",
{
body: "",
ja3: ja3,
userAgent: userAgent,
forceHTTP1: true,
},
"get"
);

// expect(response.status).toBe(200);
// let fullResp = response.body as { http_version: string };
// expect(fullResp.http_version).toBe("HTTP/1.1");
// });
expect(response.status).toBe(200);
let fullResp = response.body as { http_version: string };
expect(fullResp.http_version).toBe("HTTP/1.1");
});
});

0 comments on commit fe85092

Please sign in to comment.