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 <anna@addaleax.net> PR-URL: #14438 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe>
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

Lines changed: 5 additions & 1 deletion
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)