MCPcopy Create free account
hub / github.com/Noumena-Network/code / expectSummaryMessage

Function expectSummaryMessage

src/query/stopHooks.test.ts:57–67  ·  view source on GitHub ↗
(
  events: unknown[],
  expected: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

55}
56
57function expectSummaryMessage(
58 events: unknown[],
59 expected: Record<string, unknown>,
60) {
61 const summary = (events as Array<Record<string, unknown>>).find(
62 event =>
63 event.type === 'system' && event.subtype === 'stop_hook_summary',
64 )
65
66 expect(summary).toMatchObject(expected)
67}
68
69function expectAttachment(
70 events: unknown[],

Callers 1

stopHooks.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected