From 5c09d6f41fcd22ffaf87905eabc625ef2f2f24c7 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Mon, 1 Jul 2024 11:46:35 +0100 Subject: [PATCH] Fix type error. --- packages/server/src/api/routes/tests/search.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/server/src/api/routes/tests/search.spec.ts b/packages/server/src/api/routes/tests/search.spec.ts index bc253ad78e..5b98347953 100644 --- a/packages/server/src/api/routes/tests/search.spec.ts +++ b/packages/server/src/api/routes/tests/search.spec.ts @@ -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 }] },