(mockDispatch2, { path: path5, method, body, headers })
| 57224 | const pathSegments = path5.split("?"); |
| 57225 | if (pathSegments.length !== 2) { |
| 57226 | return path5; |
| 57227 | } |
| 57228 | const qp = new URLSearchParams(pathSegments.pop()); |
| 57229 | qp.sort(); |
| 57230 | return [...pathSegments, qp.toString()].join("?"); |
| 57231 | } |
| 57232 | function matchKey(mockDispatch2, { path: path5, method, body, headers }) { |
| 57233 | const pathMatch = matchValue(mockDispatch2.path, path5); |
| 57234 | const methodMatch = matchValue(mockDispatch2.method, method); |
| 57235 | const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true; |
no test coverage detected
searching dependent graphs…