(url: URL, destination: string)
| 189 | } |
| 190 | |
| 191 | function mergeDestinationQueryIntoUrl(url: URL, destination: string): URL { |
| 192 | const mergedUrl = new URL(url.toString()) |
| 193 | const destinationSearch = destination.split('?')[1] |
| 194 | if (!destinationSearch) { |
| 195 | return mergedUrl |
| 196 | } |
| 197 | |
| 198 | const destinationParams = new URLSearchParams(destinationSearch) |
| 199 | for (const [key, value] of destinationParams.entries()) { |
| 200 | mergedUrl.searchParams.set(key, value) |
| 201 | } |
| 202 | return mergedUrl |
| 203 | } |
| 204 | |
| 205 | function withResolvedInvocationTarget({ |
| 206 | result, |
no test coverage detected