Quick update to fix test case.
This commit is contained in:
parent
1f7aa772c9
commit
45ac9ae06c
|
@ -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 () => {
|
||||||
|
|
Loading…
Reference in New Issue