Fix test expect
This commit is contained in:
parent
9f05804c67
commit
8c3f1c39c8
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue