Quick update to fix test case.

This commit is contained in:
mike12345567 2023-09-29 13:33:49 +01:00
parent 1f7aa772c9
commit 45ac9ae06c
1 changed files with 8 additions and 6 deletions

View File

@ -1787,17 +1787,19 @@ describe.each([
user: null, user: null,
users: null, users: null,
}) })
expect(updatedRow).toEqual({ const toCompare: any = {
name: rowData.name, name: rowData.name,
description: rowData.description, description: rowData.description,
tableId, tableId,
user: isInternal ? null : undefined,
users: isInternal ? null : undefined,
_id: row._id, _id: row._id,
_rev: expect.any(String), _rev: expect.any(String),
id: isInternal ? undefined : expect.any(Number), type: "row",
type: isInternal ? "row" : undefined, }
}) if (!isInternal) {
toCompare.user = null
toCompare.users = null
}
expect(updatedRow).toEqual(toCompare)
}) })
it("fetch all will populate the relationships", async () => { it("fetch all will populate the relationships", async () => {