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

Function checkNetConnect

github-actions/browserstack/set-browserstack-env.js:11146–11154  ·  view source on GitHub ↗
(netConnect, origin)

Source from the content-addressed store, hash-verified

11144 const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
11145 const headersMatch = matchHeaders(mockDispatch2, headers);
11146 return pathMatch && methodMatch && bodyMatch && headersMatch;
11147 }
11148 function getResponseData(data) {
11149 if (Buffer.isBuffer(data)) {
11150 return data;
11151 } else if (data instanceof Uint8Array) {
11152 return data;
11153 } else if (data instanceof ArrayBuffer) {
11154 return data;
11155 } else if (typeof data === "object") {
11156 return JSON.stringify(data);
11157 } else {

Callers 1

buildMockDispatchFunction · 0.70

Calls 1

matchValueFunction · 0.70

Tested by

no test coverage detected