Function
expectSummaryMessage
(
events: unknown[],
expected: Record<string, unknown>,
)
Source from the content-addressed store, hash-verified
| 55 | } |
| 56 | |
| 57 | function 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 | |
| 69 | function expectAttachment( |
| 70 | events: unknown[], |
Tested by
no test coverage detected