From 33c5c7decca0eb08316feab3075a5c12c9017e99 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 18 Oct 2026 19:23:56 +0200 Subject: [PATCH] test(shared): the event inventory counts trip:journal:changed --- shared/src/realtime/events.schema.spec.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shared/src/realtime/events.schema.spec.ts b/shared/src/realtime/events.schema.spec.ts index 861653304..b2ea71c83 100644 --- a/shared/src/realtime/events.schema.spec.ts +++ b/shared/src/realtime/events.schema.spec.ts @@ -148,16 +148,18 @@ const DRIFT_VARIANTS: Partial[]> }; describe('@trek/shared realtime event registry', () => { - it('WSEVT-REG-001: pins the authoritative inventory counts (74 trip + 33 user = 107)', () => { + it('WSEVT-REG-001: pins the authoritative inventory counts (76 trip + 33 user = 109)', () => { // 67th to 69th trip event: the three collab:link:* a shared link emits. // 70th and 71st: the road trip's vias and tracks, which used to be written silently. // 74th: docsync:changed, so a sync run that moved documents refreshes the // panel without every member polling for it. + // 76th: trip:journal:changed, so the trip's Journal tab and Settings follow + // a journal being linked, changed or unlinked. // 33rd user event: journey:photos:updated, so the gallery re-sorts once the // capture times of an import have landed (#1587). - expect(TREK_WS_TRIP_EVENT_NAMES).toHaveLength(75); + expect(TREK_WS_TRIP_EVENT_NAMES).toHaveLength(76); expect(TREK_WS_USER_EVENT_NAMES).toHaveLength(33); - expect(TREK_WS_EVENT_NAMES).toHaveLength(108); + expect(TREK_WS_EVENT_NAMES).toHaveLength(109); }); it('WSEVT-REG-002: every name is domain:action shaped and outside the reserved plugin: namespace', () => {