From 17ecace6fad52e6b58c2b88aabbe7de5018e60f3 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 29 Sep 2023 12:54:16 +0200 Subject: [PATCH] Fix test --- packages/server/src/api/routes/tests/row.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/tests/row.spec.ts b/packages/server/src/api/routes/tests/row.spec.ts index ef4d205021..662b5b9e7b 100644 --- a/packages/server/src/api/routes/tests/row.spec.ts +++ b/packages/server/src/api/routes/tests/row.spec.ts @@ -1845,7 +1845,9 @@ describe.each([ description: r.description, tableId, user: r.user?.map(u => resultMapper(u)), - users: r.users?.map(u => resultMapper(u)), + users: r.users?.length + ? expect.arrayContaining(r.users?.map(u => resultMapper(u))) + : undefined, _id: expect.any(String), _rev: expect.any(String), id: isInternal ? undefined : expect.any(Number),