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: add comment describing test-fs-mkdir · nodejs/node@a3b3485

File tree

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

‎test/parallel/test-fs-mkdir.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-mkdir.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function nextdir() {
3333
return `test${++dirc}`;
3434
}
3535

36+
// mkdir creates directory using assigned path
3637
{
3738
const pathname = path.join(tmpdir.path, nextdir());
3839

@@ -42,6 +43,7 @@ function nextdir() {
4243
}));
4344
}
4445

46+
// mkdir creates directory with assigned mode value
4547
{
4648
const pathname = path.join(tmpdir.path, nextdir());
4749

@@ -51,6 +53,7 @@ function nextdir() {
5153
}));
5254
}
5355

56+
// mkdirSync successfully creates directory from given path
5457
{
5558
const pathname = path.join(tmpdir.path, nextdir());
5659

@@ -60,6 +63,8 @@ function nextdir() {
6063
assert.strictEqual(exists, true);
6164
}
6265

66+
// mkdirSync and mkdir require path to be a string, buffer or url.
67+
// Anything else generates an error.
6368
[false, 1, {}, [], null, undefined].forEach((i) => {
6469
common.expectsError(
6570
() => fs.mkdir(i, common.mustNotCall()),

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.