From 123fb784cab8337df8f191762066f280a61f938c Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 15 May 2024 17:29:22 -0700 Subject: [PATCH] Update index.test.ts --- apps/api/src/__tests__/e2e_withAuth/index.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/api/src/__tests__/e2e_withAuth/index.test.ts b/apps/api/src/__tests__/e2e_withAuth/index.test.ts index c748a6d..24b4fd0 100644 --- a/apps/api/src/__tests__/e2e_withAuth/index.test.ts +++ b/apps/api/src/__tests__/e2e_withAuth/index.test.ts @@ -155,7 +155,7 @@ describe("E2E Tests for API Routes", () => { url: "https://mendable.ai", limit: 10, crawlerOptions: { - includes: ["/blog/*"], + includes: ["blog/*"], }, }); @@ -184,7 +184,7 @@ describe("E2E Tests for API Routes", () => { expect(urls.length).toBeGreaterThan(5); urls.forEach((url: string) => { console.log({url}) - expect(url.startsWith("https://mendable.ai/blog/")).toBeTruthy(); + expect(url.startsWith("https://www.mendable.ai/blog/")).toBeTruthy(); }); expect(completedResponse.statusCode).toBe(200); @@ -206,7 +206,7 @@ describe("E2E Tests for API Routes", () => { url: "https://mendable.ai", limit: 10, crawlerOptions: { - excludes: ["/blog/*"], + excludes: ["blog/*"], }, }); @@ -234,7 +234,7 @@ describe("E2E Tests for API Routes", () => { ); expect(urls.length).toBeGreaterThan(5); urls.forEach((url: string) => { - expect(url.startsWith("https://mendable.ai/blog/")).toBeFalsy(); + expect(url.startsWith("https://wwww.mendable.ai/blog/")).toBeFalsy(); }); }, 60000); // 60 seconds @@ -357,7 +357,7 @@ describe("E2E Tests for API Routes", () => { expect(completedResponse.body).toHaveProperty("status"); expect(completedResponse.body.status).toBe("completed"); expect(completedResponse.body).toHaveProperty("data"); - expect(completedResponse.body.data.length).toBe(3); + expect(completedResponse.body.data.length).toBe(10); expect(completedResponse.body.data[0]).toHaveProperty("content"); expect(completedResponse.body.data[0]).toHaveProperty("markdown"); expect(completedResponse.body.data[0]).toHaveProperty("metadata");