Skip to content

Commit c2a0a93

Browse files
tniessenMylesBorins
authored andcommitted
test: increase coverage for path.parse
Backport-PR-URL: #14787 PR-URL: #14438 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Khaidi Chu <[email protected]>
1 parent 202bfcc commit c2a0a93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/parallel/test-path-parse-format.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const winPaths = [
1111
'file',
1212
'.\\file',
1313
'C:\\',
14+
'C:',
15+
'\\',
1416
'',
1517

1618
// unc
@@ -21,7 +23,9 @@ const winPaths = [
2123
];
2224

2325
const winSpecialCaseParseTests = [
24-
['/foo/bar', {root: '/'}]
26+
['/foo/bar', { root: '/' }],
27+
['C:', { root: 'C:', dir: 'C:', base: '' }],
28+
['C:\\', { root: 'C:\\', dir: 'C:\\', base: '' }]
2529
];
2630

2731
const winSpecialCaseFormatTests = [

0 commit comments

Comments
 (0)