From 93b1f0334ea736a2facb4eebe00f42fafaf3f324 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 15 May 2024 17:35:06 -0700 Subject: [PATCH] Update index.test.ts --- apps/api/src/__tests__/e2e_withAuth/index.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/__tests__/e2e_withAuth/index.test.ts b/apps/api/src/__tests__/e2e_withAuth/index.test.ts index 24b4fd0..3c031a1 100644 --- a/apps/api/src/__tests__/e2e_withAuth/index.test.ts +++ b/apps/api/src/__tests__/e2e_withAuth/index.test.ts @@ -238,14 +238,14 @@ describe("E2E Tests for API Routes", () => { }); }, 60000); // 60 seconds - it("should return a successful response with a valid API key and valid excludes option", async () => { + it("should return a successful response with a valid API key and limit to 3", async () => { const crawlResponse = await request(TEST_URL) .post("/v0/crawl") .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`) .set("Content-Type", "application/json") .send({ url: "https://mendable.ai", - limit: 3, + crawlerOptions: { limit: 3 }, }); let isFinished = false; @@ -327,7 +327,7 @@ describe("E2E Tests for API Routes", () => { .set("Content-Type", "application/json") .send({ url: "https://mendable.ai", - limit: 10, + crawlerOptions: { onlyMainContent: true, limit: 10 }, }); const response = await request(TEST_URL)