Fix tests

This commit is contained in:
Adria Navarro 2024-11-04 15:03:09 +01:00
parent 6edaf5e160
commit 6bb668ee33
1 changed files with 10 additions and 0 deletions

View File

@ -2799,6 +2799,8 @@ describe.each([
name: "foo",
description: "bar",
tableId,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
})
})
@ -2820,6 +2822,8 @@ describe.each([
id: isInternal ? undefined : expect.any(Number),
type: isInternal ? "row" : undefined,
[`fk_${o2mTable.name}_fk_o2m`]: isInternal ? undefined : user.id,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
})
})
@ -2840,6 +2844,8 @@ describe.each([
_rev: expect.any(String),
id: isInternal ? undefined : expect.any(Number),
type: isInternal ? "row" : undefined,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
})
})
@ -2917,6 +2923,8 @@ describe.each([
id: isInternal ? undefined : expect.any(Number),
type: isInternal ? "row" : undefined,
[`fk_${o2mTable.name}_fk_o2m`]: isInternal ? undefined : user.id,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
})
})
@ -2941,6 +2949,8 @@ describe.each([
_rev: expect.any(String),
id: isInternal ? undefined : expect.any(Number),
type: isInternal ? "row" : undefined,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
})
})