Skip to content

Commit c704c02

Browse files
tniessenaddaleax
authored andcommitted
test: increase coverage for path.parse
Backport-PR-URL: #14521 Backport-Reviewed-By: Anna Henningsen <[email protected]> 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 5a8862b commit c704c02

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
@@ -32,6 +32,8 @@ const winPaths = [
3232
'file',
3333
'.\\file',
3434
'C:\\',
35+
'C:',
36+
'\\',
3537
'',
3638

3739
// unc
@@ -42,7 +44,9 @@ const winPaths = [
4244
];
4345

4446
const winSpecialCaseParseTests = [
45-
['/foo/bar', {root: '/'}]
47+
['/foo/bar', { root: '/' }],
48+
['C:', { root: 'C:', dir: 'C:', base: '' }],
49+
['C:\\', { root: 'C:\\', dir: 'C:\\', base: '' }]
4650
];
4751

4852
const winSpecialCaseFormatTests = [

0 commit comments

Comments
 (0)