test: register the auto-take job and field in the existing guards

This commit is contained in:
Marc-André Bombeck committed 2026-10-11 13:50:56 +02:00
1 parent 67a55def44
commit 4386ac820e
4 files changed
+14 -1

No files matched your search

@@ -438,7 +438,12 @@ describe("POST /api/medications/intake", () => {
// v1.7.0 sync — the skip toggle bumps syncVersion.
expect(prisma.medicationIntakeEvent.update).toHaveBeenCalledWith({
where: { id: "e1" },
data: { takenAt: null, skipped: true, syncVersion: { increment: 1 } },
data: {
takenAt: null,
skipped: true,
autoRecorded: false,
syncVersion: { increment: 1 },
},
});
// v1.16.10 — a row toggled out of taken refunds its consumption
// stamp (no-op for a never-consumed row) and never consumes.