Function
countEvents
(events: ReturnType<TestAgentContext['newEvents']>, type: string)
Source from the content-addressed store, hash-verified
| 2252 | } |
| 2253 | |
| 2254 | function countEvents(events: ReturnType<TestAgentContext['newEvents']>, type: string): number { |
| 2255 | return events.filter((event) => { |
| 2256 | if (typeof event !== 'object' || event === null) return false; |
| 2257 | return (event as { readonly event?: unknown }).event === type; |
| 2258 | }).length; |
| 2259 | } |
| 2260 | |
| 2261 | function oauthTestAgentOptions( |
| 2262 | getAccessToken: (options?: { readonly force?: boolean }) => Promise<string>, |
Tested by
no test coverage detected