(mockDispatch2, headers)
| 10928 | var { |
| 10929 | types: { |
| 10930 | isPromise |
| 10931 | } |
| 10932 | } = __require("util"); |
| 10933 | function matchValue(match, value) { |
| 10934 | if (typeof match === "string") { |
| 10935 | return match === value; |
| 10936 | } |
| 10937 | if (match instanceof RegExp) { |
| 10938 | return match.test(value); |
| 10939 | } |
| 10940 | if (typeof match === "function") { |
| 10941 | return match(value) === true; |
| 10942 | } |
| 10943 | return false; |
| 10944 | } |
| 10945 | function lowerCaseEntries(headers) { |
| 10946 | return Object.fromEntries( |
| 10947 | Object.entries(headers).map(([headerName, headerValue]) => { |
| 10948 | return [headerName.toLocaleLowerCase(), headerValue]; |
| 10949 | }) |
| 10950 | ); |
| 10951 | } |
| 10952 | function getHeaderByName(headers, key) { |
| 10953 | if (Array.isArray(headers)) { |
no test coverage detected