test: increase coverage for path.parse
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
2ac0aff283
commit
f7f590c9a9
@ -32,6 +32,8 @@ const winPaths = [
|
||||
'file',
|
||||
'.\\file',
|
||||
'C:\\',
|
||||
'C:',
|
||||
'\\',
|
||||
'',
|
||||
|
||||
// unc
|
||||
@ -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 = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user