diff --git a/test/parallel/test-path-parse-format.js b/test/parallel/test-path-parse-format.js index 2ef209464e1b98..c75c1a9135cd79 100644 --- a/test/parallel/test-path-parse-format.js +++ b/test/parallel/test-path-parse-format.js @@ -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 = [