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

Function matchKey

github-actions/browserstack/set-browserstack-env.js:10963–10969  ·  view source on GitHub ↗
(mockDispatch2, { path: path4, method, body, headers })

Source from the content-addressed store, hash-verified

10961 if (typeof match === "function") {
10962 return match(value) === true;
10963 }
10964 return false;
10965 }
10966 function lowerCaseEntries(headers) {
10967 return Object.fromEntries(
10968 Object.entries(headers).map(([headerName, headerValue]) => {
10969 return [headerName.toLocaleLowerCase(), headerValue];
10970 })
10971 );
10972 }

Callers 1

deleteMockDispatchFunction · 0.70

Calls 2

matchValueFunction · 0.70
matchHeadersFunction · 0.70

Tested by

no test coverage detected