From 8c3f1c39c8189dee23524687861b98cc7d23ceae Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 21 Aug 2024 13:33:02 +0200 Subject: [PATCH] Fix test expect --- .../server/src/api/routes/tests/viewV2.spec.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/server/src/api/routes/tests/viewV2.spec.ts b/packages/server/src/api/routes/tests/viewV2.spec.ts index ea7ebed0b6..149369785c 100644 --- a/packages/server/src/api/routes/tests/viewV2.spec.ts +++ b/packages/server/src/api/routes/tests/viewV2.spec.ts @@ -1535,11 +1535,11 @@ describe.each([ }, }) expect(response.rows).toHaveLength(1) - expect(response).toEqual({ - rows: expect.arrayContaining([ + expect(response.rows).toEqual( + expect.arrayContaining([ expect.objectContaining({ _id: three._id }), - ]), - }) + ]) + ) }) !isLucene && @@ -1586,12 +1586,12 @@ describe.each([ }, }) expect(response.rows).toHaveLength(2) - expect(response).toEqual({ - rows: expect.arrayContaining([ + expect(response.rows).toEqual( + expect.arrayContaining([ expect.objectContaining({ _id: one._id }), expect.objectContaining({ _id: three._id }), - ]), - }) + ]) + ) }) isLucene &&