From 3f833737f3cafe502bd394fde524aa8ac0bfd77c Mon Sep 17 00:00:00 2001 From: rafaelsideguide <150964962+rafaelsideguide@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:25:25 -0300 Subject: [PATCH] fixing test --- apps/api/src/__tests__/e2e/index.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/api/src/__tests__/e2e/index.test.ts b/apps/api/src/__tests__/e2e/index.test.ts index 3bc3e99..608d887 100644 --- a/apps/api/src/__tests__/e2e/index.test.ts +++ b/apps/api/src/__tests__/e2e/index.test.ts @@ -154,10 +154,10 @@ 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).toHaveProperty('content'); - expect(completedResponse.body.data).toHaveProperty('markdown'); - expect(completedResponse.body.data).toHaveProperty('metadata'); - expect(completedResponse.body.data.content).toContain('🔥 FireCrawl'); + expect(completedResponse.body.data[0]).toHaveProperty('content'); + expect(completedResponse.body.data[0]).toHaveProperty('markdown'); + expect(completedResponse.body.data[0]).toHaveProperty('metadata'); + expect(completedResponse.body.data[0].content).toContain('🔥 FireCrawl'); }, 60000); // 60 seconds });