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,
users: null,
})
expect(updatedRow).toEqual({
const toCompare: any = {
name: rowData.name,
description: rowData.description,
tableId,
user: isInternal ? null : undefined,
users: isInternal ? null : undefined,
_id: row._id,
_rev: expect.any(String),
id: isInternal ? undefined : expect.any(Number),
type: isInternal ? "row" : undefined,
})
type: "row",
}
if (!isInternal) {
toCompare.user = null
toCompare.users = null
}
expect(updatedRow).toEqual(toCompare)
})
it("fetch all will populate the relationships", async () => {