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

Function getResponse

github-actions/browserstack/set-browserstack-env.js:11053–11073  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

11051 "use strict";
11052 var { MockNotMatchedError } = require_mock_errors();
11053 var {
11054 kDispatches,
11055 kMockAgent,
11056 kOriginalDispatch,
11057 kOrigin,
11058 kGetNetConnect
11059 } = require_mock_symbols();
11060 var { buildURL } = require_util();
11061 var { STATUS_CODES } = __require("http");
11062 var {
11063 types: {
11064 isPromise
11065 }
11066 } = __require("util");
11067 function matchValue(match, value) {
11068 if (typeof match === "string") {
11069 return match === value;
11070 }
11071 if (match instanceof RegExp) {
11072 return match.test(value);
11073 }
11074 if (typeof match === "function") {
11075 return match(value) === true;
11076 }

Callers

nothing calls this directly

Calls 5

__asyncFunction · 0.70
__forAwaitFunction · 0.70
nextMethod · 0.45
pushMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected