Skip to content

Commit c2a0a93

Browse files
tniessenMylesBorins
authored andcommittedAug 16, 2017
test: increase coverage for path.parse
Backport-PR-URL: #14787 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 202bfcc commit c2a0a93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

Diff for: ‎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)
Please sign in to comment.