mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
fix(01-11): keep reminder fixture type-safe
- mutate the inferred schedule fixture without widening nullable fields - preserve the cross-midnight RED expectation unchanged
This commit is contained in:
1 parent
25612294d1
commit
958b0e10d9
1 file changed
+2
-3
@@ -316,13 +316,12 @@ describe("medication reminder — client-managed suppression is APNs-only", () =
|
||||
describe("issue #664 — dedup follows the scheduled occurrence across midnight", () => {
|
||||
it("dispatches an untreated overnight occurrence once and anchors its own local date", async () => {
|
||||
const med = medicationFixture();
|
||||
med.schedules[0] = {
|
||||
...med.schedules[0],
|
||||
Object.assign(med.schedules[0], {
|
||||
windowStart: "23:45",
|
||||
windowEnd: "00:30",
|
||||
timesOfDay: ["23:45"],
|
||||
rrule: "FREQ=DAILY",
|
||||
};
|
||||
});
|
||||
med.user.timezone = "Europe/Berlin";
|
||||
prismaMock.medication.findMany.mockResolvedValue([med]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user