Commit 8e09f3c
committed
fix(test): use cross-platform path check in globs tests
Replace `startsWith('/')` checks with `path.isAbsolute()` to handle
both Unix-style paths (`/path/to/file`) and Windows paths (`C:\path\to\file`)
correctly. This fixes test failures on Windows where absolute paths start
with drive letters instead of forward slashes.
Fixes tests in both glob() and globSync() test suites.1 parent 8e7e025 commit 8e09f3c
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
362 | | - | |
| 363 | + | |
363 | 364 | | |
364 | 365 | | |
365 | 366 | | |
| |||
442 | 443 | | |
443 | 444 | | |
444 | 445 | | |
445 | | - | |
| 446 | + | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
| |||
0 commit comments