(value)
| 11 | } |
| 12 | |
| 13 | function canonicalPath(value) { |
| 14 | const resolved = path.resolve(value); |
| 15 | try { |
| 16 | return fs.realpathSync.native(resolved); |
| 17 | } catch { |
| 18 | try { return fs.realpathSync(resolved); } catch { return resolved; } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | function assertPathEqual(actual, expected, message) { |
| 23 | assert.equal(canonicalPath(actual), canonicalPath(expected), message); |
no outgoing calls
no test coverage detected