This commit is contained in:
Adria Navarro 2023-09-29 12:54:16 +02:00
parent 711f82099f
commit 17ecace6fa
1 changed files with 3 additions and 1 deletions

View File

@ -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),