(url, outputDirectory)
| 38 | * @returns {string} absolute path |
| 39 | */ |
| 40 | const urlToPath = (url, outputDirectory) => { |
| 41 | if (url.startsWith("https://test.cases/path/")) url = url.slice(24); |
| 42 | else if (url.startsWith("https://test.cases/")) url = url.slice(19); |
| 43 | return path.resolve(outputDirectory, `./${url}`); |
| 44 | }; |
| 45 | |
| 46 | /** |
| 47 | * @param {string} url url |
no test coverage detected