GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: cover path empty string case · nodejs/node@288a421

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-path-makelong.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-path-makelong.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-path-makelong.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ if (common.isWindows) {
4343
'\\\\.\\pipe\\somepipe');
4444
}
4545

46+
assert.strictEqual(path.toNamespacedPath(''), '');
4647
assert.strictEqual(path.toNamespacedPath(null), null);
4748
assert.strictEqual(path.toNamespacedPath(100), 100);
4849
assert.strictEqual(path.toNamespacedPath(path), path);
@@ -60,6 +61,7 @@ assert.strictEqual(path.posix.toNamespacedPath(emptyObj), emptyObj);
6061
if (common.isWindows) {
6162
// These tests cause resolve() to insert the cwd, so we cannot test them from
6263
// non-Windows platforms (easily)
64+
assert.strictEqual(path.toNamespacedPath(''), '');
6365
assert.strictEqual(path.win32.toNamespacedPath('foo\\bar').toLowerCase(),
6466
`\\\\?\\${process.cwd().toLowerCase()}\\foo\\bar`);
6567
assert.strictEqual(path.win32.toNamespacedPath('foo/bar').toLowerCase(),

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.