mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 00:43:15 +00:00
test(journey): pin the capture hint through the upload routes and the shared contract
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user