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.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 &&
|
||||||
|
|
Loading…
Reference in New Issue