test(journey): pin the capture hint through the upload routes and the shared contract

This commit is contained in:
Maurice
2026-11-30 14:39:39 +01:00
parent 78c0f65de4
commit e59cd23e60
4 changed files with 31 additions and 4 deletions
+1 -1
View File
@@ -625,7 +625,7 @@ describe('Journey e2e (real auth guard + temp SQLite)', () => {
expect(res.body.photos).toHaveLength(1);
// The capture backfill runs for the upload (and may place its entry, #1003)...
await new Promise((resolve) => setTimeout(resolve, 10));
expect(backfillRun).toHaveBeenCalledWith([90], 1);
expect(backfillRun).toHaveBeenCalledWith([90], 1, undefined);
// ...but no journey refresh follows: a bulk upload would otherwise reload
// every open client once per photo.
expect(jsvc.broadcastJourneyEvent).not.toHaveBeenCalled();