diff --git a/tests/integration/managed-record-capabilities.test.ts b/tests/integration/managed-record-capabilities.test.ts index 5939af474..66458e9ff 100644 --- a/tests/integration/managed-record-capabilities.test.ts +++ b/tests/integration/managed-record-capabilities.test.ts @@ -111,7 +111,12 @@ function jsonRequest(url: string, body: unknown): NextRequest { async function postMood() { const { POST } = await import("@/app/api/mood-entries/route"); - return POST(jsonRequest("/api/mood-entries", { mood: "GUT" })); + return POST( + jsonRequest("/api/mood-entries", { + mood: "GUT", + moodLoggedAt: new Date().toISOString(), + }), + ); } async function postAllergy() { diff --git a/tests/integration/sharing-account-access.test.ts b/tests/integration/sharing-account-access.test.ts index 3eca07f02..204e2e4de 100644 --- a/tests/integration/sharing-account-access.test.ts +++ b/tests/integration/sharing-account-access.test.ts @@ -81,6 +81,8 @@ interface AccountAccessEntry { recordKind: "shared" | "managed"; sections: string[] | null; canWrite: boolean; + writableDomains: string[]; + manageableDomains: string[]; } interface AccountAccessBlock { @@ -183,6 +185,8 @@ describe("accountAccess — what the payload publishes", () => { recordKind: "shared", sections: null, canWrite: false, + writableDomains: [], + manageableDomains: [], }, ]); expect(accountAccess.canSwitch).toBe(true); @@ -342,6 +346,8 @@ describe("accountAccess — the active record", () => { recordKind: "shared", sections: null, canWrite: false, + writableDomains: [], + manageableDomains: [], }); // The active entry is one of the listed ones, by construction. A banner // that had to join the two could render unnamed when they disagreed.