( pathName1: string, pathName2: string, basepath: string, )
| 59 | * relative to the provided `basepath`. |
| 60 | */ |
| 61 | export function exactPathTest( |
| 62 | pathName1: string, |
| 63 | pathName2: string, |
| 64 | basepath: string, |
| 65 | ): boolean { |
| 66 | return ( |
| 67 | removeTrailingSlash(pathName1, basepath) === |
| 68 | removeTrailingSlash(pathName2, basepath) |
| 69 | ) |
| 70 | } |
| 71 | |
| 72 | // When resolving relative paths, we treat all paths as if they are trailing slash |
| 73 | // documents. All trailing slashes are removed after the path is resolved. |
no test coverage detected