(data)
| 10968 | const entries = []; |
| 10969 | for (let index = 0; index < clone.length; index += 2) { |
| 10970 | entries.push([clone[index], clone[index + 1]]); |
| 10971 | } |
| 10972 | return Object.fromEntries(entries); |
| 10973 | } |
| 10974 | function matchHeaders(mockDispatch2, headers) { |
| 10975 | if (typeof mockDispatch2.headers === "function") { |
| 10976 | if (Array.isArray(headers)) { |
| 10977 | headers = buildHeadersFromArray(headers); |
| 10978 | } |
| 10979 | return mockDispatch2.headers(headers ? lowerCaseEntries(headers) : {}); |
| 10980 | } |
| 10981 | if (typeof mockDispatch2.headers === "undefined") { |
| 10982 | return true; |
| 10983 | } |
| 10984 | if (typeof headers !== "object" || typeof mockDispatch2.headers !== "object") { |
| 10985 | return false; |
no test coverage detected