(origin)
| 11610 | return dispatcher; |
| 11611 | } |
| 11612 | dispatch(opts, handler) { |
| 11613 | this.get(opts.origin); |
| 11614 | return this[kAgent].dispatch(opts, handler); |
| 11615 | } |
| 11616 | close() { |
| 11617 | return __async(this, null, function* () { |
| 11618 | yield this[kAgent].close(); |
| 11619 | this[kClients].clear(); |
| 11620 | }); |
| 11621 | } |
| 11622 | deactivate() { |
| 11623 | this[kIsMockActive] = false; |
| 11624 | } |
| 11625 | activate() { |
| 11626 | this[kIsMockActive] = true; |
| 11627 | } |
| 11628 | enableNetConnect(matcher) { |
| 11629 | if (typeof matcher === "string" || typeof matcher === "function" || matcher instanceof RegExp) { |
| 11630 | if (Array.isArray(this[kNetConnect])) { |
| 11631 | this[kNetConnect].push(matcher); |
| 11632 | } else { |
| 11633 | this[kNetConnect] = [matcher]; |
nothing calls this directly
no test coverage detected