Skip to content

Commit

Permalink
test: increase coverage for path.parse
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tniessen authored and addaleax committed Jul 28, 2017
1 parent 5a8862b commit c704c02
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/parallel/test-path-parse-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const winPaths = [
'file',
'.\\file',
'C:\\',
'C:',
'\\',
'',

// unc
Expand All @@ -42,7 +44,9 @@ const winPaths = [
];

const winSpecialCaseParseTests = [
['/foo/bar', {root: '/'}]
['/foo/bar', { root: '/' }],
['C:', { root: 'C:', dir: 'C:', base: '' }],
['C:\\', { root: 'C:\\', dir: 'C:\\', base: '' }]
];

const winSpecialCaseFormatTests = [
Expand Down

0 comments on commit c704c02

Please sign in to comment.