From 837b4463909c08e6ed4e0243b5b154fa7fe0566b Mon Sep 17 00:00:00 2001 From: Eric Ciarla Date: Sat, 29 Jun 2024 08:48:42 -0400 Subject: [PATCH] Update index.test.ts --- .../__tests__/e2e_full_withAuth/index.test.ts | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/apps/api/src/__tests__/e2e_full_withAuth/index.test.ts b/apps/api/src/__tests__/e2e_full_withAuth/index.test.ts index 5227118ff..43e9ea1d9 100644 --- a/apps/api/src/__tests__/e2e_full_withAuth/index.test.ts +++ b/apps/api/src/__tests__/e2e_full_withAuth/index.test.ts @@ -132,28 +132,6 @@ describe("E2E Tests for API Routes", () => { expect(response.body.data.metadata.pageError).toBeUndefined(); }, 30000); // 30 seconds timeout - it.concurrent("should return a successful response with a valid API key and includeRawHtml set to true", async () => { - const response = await request(TEST_URL) - .post("/v0/scrape") - .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`) - .set("Content-Type", "application/json") - .send({ - url: "https://roastmywebsite.ai", - pageOptions: { includeHtml: true }, - }); - expect(response.statusCode).toBe(200); - expect(response.body).toHaveProperty("data"); - expect(response.body.data).toHaveProperty("content"); - expect(response.body.data).toHaveProperty("markdown"); - expect(response.body.data).toHaveProperty("rawHtml"); - expect(response.body.data).toHaveProperty("metadata"); - expect(response.body.data.content).toContain("_Roast_"); - expect(response.body.data.markdown).toContain("_Roast_"); - expect(response.body.data.html).toContain(" { const response = await request(TEST_URL) .post("/v0/scrape")