()
| 207 | } |
| 208 | |
| 209 | pendingInterceptors () { |
| 210 | const mockAgentClients = this[kClients] |
| 211 | |
| 212 | return Array.from(mockAgentClients.entries()) |
| 213 | .flatMap(([origin, dispatcher]) => dispatcher[kDispatches].map(dispatch => ({ ...dispatch, origin }))) |
| 214 | .filter(({ pending }) => pending) |
| 215 | } |
| 216 | |
| 217 | assertNoPendingInterceptors ({ pendingInterceptorsFormatter = new PendingInterceptorsFormatter() } = {}) { |
| 218 | const pending = this.pendingInterceptors() |