From d8bb1f68c67f80d60ca26ee5553d26a9d032af22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Mon, 11 Nov 2024 22:10:19 +0100 Subject: [PATCH] fix(tests): maxDepth tests --- apps/api/src/__tests__/e2e_v1_withAuth/index.test.ts | 2 +- apps/api/src/__tests__/e2e_withAuth/index.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/__tests__/e2e_v1_withAuth/index.test.ts b/apps/api/src/__tests__/e2e_v1_withAuth/index.test.ts index 8c3d1731..e1f5f3fa 100644 --- a/apps/api/src/__tests__/e2e_v1_withAuth/index.test.ts +++ b/apps/api/src/__tests__/e2e_v1_withAuth/index.test.ts @@ -868,7 +868,7 @@ describe("POST /v1/crawl", () => { const urls = completedResponse.body.data.map( (item: any) => item.metadata?.sourceURL ); - expect(urls.length).toBeGreaterThanOrEqual(1); + expect(urls.length).toBeGreaterThan(1); // Check if all URLs have a maximum depth of 1 urls.forEach((url: string) => { diff --git a/apps/api/src/__tests__/e2e_withAuth/index.test.ts b/apps/api/src/__tests__/e2e_withAuth/index.test.ts index 1646843f..90a4587d 100644 --- a/apps/api/src/__tests__/e2e_withAuth/index.test.ts +++ b/apps/api/src/__tests__/e2e_withAuth/index.test.ts @@ -538,7 +538,7 @@ describe("E2E Tests for v0 API Routes", () => { const urls = completedResponse.body.data.map( (item: any) => item.metadata?.sourceURL ); - expect(urls.length).toBeGreaterThanOrEqual(1); + expect(urls.length).toBeGreaterThan(1); // Check if all URLs have a maximum depth of 1 urls.forEach((url: string) => {