()
| 391 | // ============================================================================ |
| 392 | |
| 393 | const stringToURL = () => |
| 394 | z.codec(z.url(), z.instanceof(URL), { |
| 395 | decode: (urlString) => new URL(urlString), |
| 396 | encode: (url) => url.href, |
| 397 | }); |
| 398 | |
| 399 | test("stringToURL codec", () => { |
| 400 | const codec = stringToURL(); |
no test coverage detected