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

Function getMockDispatch

github-actions/browserstack/set-browserstack-env.js:10983–11004  ·  view source on GitHub ↗
(mockDispatches, key)

Source from the content-addressed store, hash-verified

10981 var require_api = __commonJS({
10982 ""(exports, module) {
10983 "use strict";
10984 module.exports.request = require_api_request();
10985 module.exports.stream = require_api_stream();
10986 module.exports.pipeline = require_api_pipeline();
10987 module.exports.upgrade = require_api_upgrade();
10988 module.exports.connect = require_api_connect();
10989 }
10990 });
10991
10992 //
10993 var require_mock_errors = __commonJS({
10994 ""(exports, module) {
10995 "use strict";
10996 var { UndiciError } = require_errors();
10997 var kMockNotMatchedError = Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");
10998 var _a;
10999 var _MockNotMatchedError = class _MockNotMatchedError extends UndiciError {
11000 constructor(message) {
11001 super(message);
11002 __publicField(this, _a, true);
11003 Error.captureStackTrace(this, _MockNotMatchedError);
11004 this.name = "MockNotMatchedError";
11005 this.message = message || "The request does not match any registered mock dispatches";
11006 this.code = "UND_MOCK_ERR_MOCK_NOT_MATCHED";
11007 }

Callers 1

mockDispatchFunction · 0.70

Calls 5

buildURLFunction · 0.70
safeUrlFunction · 0.70
matchValueFunction · 0.70
matchHeadersFunction · 0.70
stringifyMethod · 0.45

Tested by

no test coverage detected