test(records): cover the new report-section toggles in the prefs route fixtures

The doctor-report prefs route resolves every toggle to the full
canonical shape; the fixtures predate the allergies/familyHistory
sections and asserted the seven-key shape.
This commit is contained in:
Marc-André Bombeck committed 2026-07-05 18:40:59 +02:00
1 parent 133b84fa72
commit 5a7a13c934
1 file changed
+4
@@ -92,6 +92,8 @@ describe("PUT /api/auth/me/doctor-report-prefs", () => {
sleep: false,
cycle: false,
labs: true,
allergies: true,
familyHistory: false,
};
const res = await (PUT as (r: Request) => Promise<Response>)(mkPut(body));
expect(res.status).toBe(200);
@@ -116,6 +118,8 @@ describe("PUT /api/auth/me/doctor-report-prefs", () => {
sleep: false,
cycle: false,
labs: false,
allergies: false,
familyHistory: false,
};
vi.mocked(prisma.user.findUnique).mockResolvedValue({
doctorReportPrefsJson: current,