mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
test: register the auto-take job and field in the existing guards
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user