MCPcopy Create free account
hub / github.com/block/buzz / findMockEventChannel

Function findMockEventChannel

desktop/src/testing/e2eBridge.ts:7176–7183  ·  view source on GitHub ↗

Locate the channel a stored mock event lives in (reactions carry no channel arg).

(eventId: string)

Source from the content-addressed store, hash-verified

7174
7175/** Locate the channel a stored mock event lives in (reactions carry no channel arg). */
7176function findMockEventChannel(eventId: string): string | undefined {
7177 for (const [channelId, events] of mockMessages) {
7178 if (events.some((event) => event.id === eventId)) {
7179 return channelId;
7180 }
7181 }
7182 return undefined;
7183}
7184
7185/**
7186 * Mock the `add_reaction` Tauri command. Mirrors the real Rust command: a

Callers 2

handleAddReactionFunction · 0.85
handleRemoveReactionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected