mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
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:
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,
|
||||
|
||||
Reference in new issue
Block a user