| 7 | |
| 8 | /** MockPool extends the Pool API and allows one to mock requests. */ |
| 9 | declare class MockPool extends Pool implements Interceptable { |
| 10 | constructor (origin: string, options: MockPool.Options) |
| 11 | /** Intercepts any matching requests that use the same origin as this mock pool. */ |
| 12 | intercept (options: MockInterceptor.Options): MockInterceptor |
| 13 | /** Dispatches a mocked request. */ |
| 14 | dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean |
| 15 | /** Closes the mock pool and gracefully waits for enqueued requests to complete. */ |
| 16 | close (): Promise<void> |
| 17 | /** Clean up all the prepared mocks. */ |
| 18 | cleanMocks (): void |
| 19 | } |
| 20 | |
| 21 | declare namespace MockPool { |
| 22 | /** MockPool options. */ |
nothing calls this directly
no outgoing calls
no test coverage detected