mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 22:32:04 +00:00
test(measurements): pin the null-trigger stamp on a batch that declares none
This commit is contained in:
1 parent
7e4b9d9be9
commit
d222aa2354
2 files changed
+14
-2
No files matched your search
@@ -153,7 +153,12 @@ describe("POST /api/measurements/batch — PR detection enqueue (v1.4.25 W16c)",
|
||||
expect(prisma.user.update).toHaveBeenCalledTimes(1);
|
||||
expect(prisma.user.update).toHaveBeenCalledWith({
|
||||
where: { id: "user-1" },
|
||||
data: { healthKitLastSyncedAt: expect.any(Date) },
|
||||
// This batch declares no trigger, so the trigger field is nulled and the
|
||||
// background timestamp is not written — see the sync-trigger suite.
|
||||
data: {
|
||||
healthKitLastSyncedAt: expect.any(Date),
|
||||
healthKitLastSyncTrigger: null,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user