MCPcopy Create free account
hub / github.com/angular/dev-infra / [kMockAgentGet]

Method [kMockAgentGet]

github-actions/browserstack/set-browserstack-env.js:11612–11630  ·  view source on GitHub ↗
(origin)

Source from the content-addressed store, hash-verified

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];

Callers

nothing calls this directly

Calls 2

matchValueFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected