Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update index.test.ts

Eric Ciarla837b4463909c
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("<h1");
- expect(response.body.data.metadata.pageStatusCode).toBe(200);
- 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")