Fix test expect

This commit is contained in:
Adria Navarro 2024-08-21 13:33:02 +02:00
parent 9f05804c67
commit 8c3f1c39c8
1 changed files with 8 additions and 8 deletions

View File

@ -1535,11 +1535,11 @@ describe.each([
}, },
}) })
expect(response.rows).toHaveLength(1) expect(response.rows).toHaveLength(1)
expect(response).toEqual({ expect(response.rows).toEqual(
rows: expect.arrayContaining([ expect.arrayContaining([
expect.objectContaining({ _id: three._id }), expect.objectContaining({ _id: three._id }),
]), ])
}) )
}) })
!isLucene && !isLucene &&
@ -1586,12 +1586,12 @@ describe.each([
}, },
}) })
expect(response.rows).toHaveLength(2) expect(response.rows).toHaveLength(2)
expect(response).toEqual({ expect(response.rows).toEqual(
rows: expect.arrayContaining([ expect.arrayContaining([
expect.objectContaining({ _id: one._id }), expect.objectContaining({ _id: one._id }),
expect.objectContaining({ _id: three._id }), expect.objectContaining({ _id: three._id }),
]), ])
}) )
}) })
isLucene && isLucene &&