Fix type error.

This commit is contained in:
Sam Rose 2024-07-01 11:46:35 +01:00
parent 6eb37df92d
commit 5c09d6f41f
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -1940,6 +1940,8 @@ describe.each([
it("successfully finds a row searching with a string", async () => {
await expectQuery({
// @ts-expect-error this test specifically goes against the type to
// test that we coerce the string to an array.
contains: { "1:users": user1._id },
}).toContainExactly([
{ users: [{ _id: user1._id }] },