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

Function deleteMockDispatch

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

Source from the content-addressed store, hash-verified

11010 if (!matchValue(matchHeaderValue, headerValue)) {
11011 return false;
11012 }
11013 }
11014 return true;
11015 }
11016 function safeUrl(path4) {
11017 if (typeof path4 !== "string") {
11018 return path4;
11019 }
11020 const pathSegments = path4.split("?");
11021 if (pathSegments.length !== 2) {
11022 return path4;
11023 }
11024 const qp = new URLSearchParams(pathSegments.pop());
11025 qp.sort();

Callers 2

mockDispatchFunction · 0.70
handleReplyFunction · 0.70

Calls 1

matchKeyFunction · 0.70

Tested by

no test coverage detected