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

Function addMockDispatch

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

Source from the content-addressed store, hash-verified

11003 return true;
11004 }
11005 if (typeof headers !== "object" || typeof mockDispatch2.headers !== "object") {
11006 return false;
11007 }
11008 for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch2.headers)) {
11009 const headerValue = getHeaderByName(headers, matchHeaderName);
11010 if (!matchValue(matchHeaderValue, headerValue)) {
11011 return false;
11012 }
11013 }
11014 return true;

Callers 2

replyMethod · 0.70
replyWithErrorMethod · 0.70

Calls 3

__spreadValuesFunction · 0.70
__spreadPropsFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected