mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
fix(01-11): use canonical compliance status fixture
- model resolved rolling doses with the valid upcoming status - keep take-all suppression aligned with production DoseStatus values
This commit is contained in:
1 parent
35b172c6f5
commit
34372b57bd
1 file changed
+2
-2
@@ -91,7 +91,7 @@ async function createMounjaro(): Promise<string> {
|
||||
|
||||
async function readConsumerOccurrence(
|
||||
medicationId: string,
|
||||
complianceStatus: "overdue" | "on_track" = "overdue",
|
||||
complianceStatus: "overdue" | "upcoming" = "overdue",
|
||||
) {
|
||||
const prisma = getPrismaClient();
|
||||
const list = await buildMedicationsList(USER_ID, USER_TZ);
|
||||
@@ -187,7 +187,7 @@ describe("rolling weekly overdue occurrence — shared consumers", () => {
|
||||
},
|
||||
});
|
||||
|
||||
const state = await readConsumerOccurrence(medicationId, "on_track");
|
||||
const state = await readConsumerOccurrence(medicationId, "upcoming");
|
||||
expect(state.list).toEqual({
|
||||
occurrence: NEXT_OCCURRENCE.toISOString(),
|
||||
overdue: false,
|
||||
|
||||
Reference in new issue
Block a user