Skip to content

Commit

Permalink
test: increase coverage for path.parse
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
tniessen committed Jul 27, 2017
1 parent 23cd934 commit 797718d
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 797718d

Please sign in to comment.