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

Function handleGetNote

desktop/src/testing/e2eBridge.ts:4112–4120  ·  view source on GitHub ↗
(args: { noteId?: string })

Source from the content-addressed store, hash-verified

4110}
4111
4112function handleGetNote(args: { noteId?: string }) {
4113 const noteId = args.noteId;
4114 return (
4115 [
4116 ...getMockUserNotes(DEFAULT_MOCK_IDENTITY.pubkey),
4117 ...getMockUserNotes(ALICE_PUBKEY),
4118 ].find((note) => note.id === noteId) ?? null
4119 );
4120}
4121
4122function handleGetNoteReactions() {
4123 return [];

Callers 1

handleMockCommandFunction · 0.85

Calls 1

getMockUserNotesFunction · 0.85

Tested by

no test coverage detected