MCPcopy Create free account
hub / github.com/angular/dev-infra / disableNetConnect

Method disableNetConnect

github-actions/browserstack/set-browserstack-env.js:11597–11599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11595 super(origin, opts);
11596 if (!opts || !opts.agent || typeof opts.agent.dispatch !== "function") {
11597 throw new InvalidArgumentError("Argument opts.agent must implement Agent");
11598 }
11599 this[kMockAgent] = opts.agent;
11600 this[kOrigin] = origin;
11601 this[kDispatches] = [];
11602 this[kConnected] = 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected