summaryrefslogtreecommitdiff
path: root/test/parallel
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel')
-rw-r--r--test/parallel/test-fs-filehandle.js2
-rw-r--r--test/parallel/test-fs-open-flags.js2
-rw-r--r--test/parallel/test-fs-promises-file-handle-append-file.js4
-rw-r--r--test/parallel/test-fs-promises-file-handle-chmod.js4
-rw-r--r--test/parallel/test-fs-promises-file-handle-read.js4
-rw-r--r--test/parallel/test-fs-promises-file-handle-readFile.js4
-rw-r--r--test/parallel/test-fs-promises-file-handle-stat.js4
-rw-r--r--test/parallel/test-fs-promises-file-handle-write.js4
-rw-r--r--test/parallel/test-fs-promises-file-handle-writeFile.js4
-rw-r--r--test/parallel/test-fs-promises-readfile.js2
-rw-r--r--test/parallel/test-fs-promises-writefile.js2
-rw-r--r--test/parallel/test-fs-promises.js2
-rw-r--r--test/parallel/test-fs-syncwritestream.js4
-rw-r--r--test/parallel/test-internal-fs-syncwritestream.js2
-rw-r--r--test/parallel/test-internal-fs.js2
15 files changed, 23 insertions, 23 deletions
diff --git a/test/parallel/test-fs-filehandle.js b/test/parallel/test-fs-filehandle.js
index 8ddc11ec3e..84b462aa90 100644
--- a/test/parallel/test-fs-filehandle.js
+++ b/test/parallel/test-fs-filehandle.js
@@ -5,7 +5,7 @@ const common = require('../common');
const assert = require('assert');
const path = require('path');
const fs = process.binding('fs');
-const { stringToFlags } = require('internal/fs');
+const { stringToFlags } = require('internal/fs/utils');
// Verifies that the FileHandle object is garbage collected and that a
// warning is emitted if it is not closed.
diff --git a/test/parallel/test-fs-open-flags.js b/test/parallel/test-fs-open-flags.js
index 7f70885861..546d68e312 100644
--- a/test/parallel/test-fs-open-flags.js
+++ b/test/parallel/test-fs-open-flags.js
@@ -39,7 +39,7 @@ const O_DSYNC = fs.constants.O_DSYNC || 0;
const O_TRUNC = fs.constants.O_TRUNC || 0;
const O_WRONLY = fs.constants.O_WRONLY || 0;
-const { stringToFlags } = require('internal/fs');
+const { stringToFlags } = require('internal/fs/utils');
assert.strictEqual(stringToFlags('r'), O_RDONLY);
assert.strictEqual(stringToFlags('r+'), O_RDWR);
diff --git a/test/parallel/test-fs-promises-file-handle-append-file.js b/test/parallel/test-fs-promises-file-handle-append-file.js
index 38336a2b43..7766ac4c90 100644
--- a/test/parallel/test-fs-promises-file-handle-append-file.js
+++ b/test/parallel/test-fs-promises-file-handle-append-file.js
@@ -2,11 +2,11 @@
const common = require('../common');
-// The following tests validate base functionality for the fs/promises
+// The following tests validate base functionality for the fs.promises
// FileHandle.appendFile method.
const fs = require('fs');
-const { open } = require('fs/promises');
+const { open } = fs.promises;
const path = require('path');
const tmpdir = require('../common/tmpdir');
const assert = require('assert');
diff --git a/test/parallel/test-fs-promises-file-handle-chmod.js b/test/parallel/test-fs-promises-file-handle-chmod.js
index c2a44fba7b..8b9d8b1c0d 100644
--- a/test/parallel/test-fs-promises-file-handle-chmod.js
+++ b/test/parallel/test-fs-promises-file-handle-chmod.js
@@ -2,11 +2,11 @@
const common = require('../common');
-// The following tests validate base functionality for the fs/promises
+// The following tests validate base functionality for the fs.promises
// FileHandle.chmod method.
const fs = require('fs');
-const { open } = require('fs/promises');
+const { open } = fs.promises;
const path = require('path');
const tmpdir = require('../common/tmpdir');
const assert = require('assert');
diff --git a/test/parallel/test-fs-promises-file-handle-read.js b/test/parallel/test-fs-promises-file-handle-read.js
index 5a9bc4558c..a397b0e260 100644
--- a/test/parallel/test-fs-promises-file-handle-read.js
+++ b/test/parallel/test-fs-promises-file-handle-read.js
@@ -2,11 +2,11 @@
const common = require('../common');
-// The following tests validate base functionality for the fs/promises
+// The following tests validate base functionality for the fs.promises
// FileHandle.read method.
const fs = require('fs');
-const { open } = require('fs/promises');
+const { open } = fs.promises;
const path = require('path');
const tmpdir = require('../common/tmpdir');
const assert = require('assert');
diff --git a/test/parallel/test-fs-promises-file-handle-readFile.js b/test/parallel/test-fs-promises-file-handle-readFile.js
index 9308c29909..316fd6581f 100644
--- a/test/parallel/test-fs-promises-file-handle-readFile.js
+++ b/test/parallel/test-fs-promises-file-handle-readFile.js
@@ -2,11 +2,11 @@
const common = require('../common');
-// The following tests validate base functionality for the fs/promises
+// The following tests validate base functionality for the fs.promises
// FileHandle.readFile method.
const fs = require('fs');
-const { open } = require('fs/promises');
+const { open } = fs.promises;
const path = require('path');
const tmpdir = require('../common/tmpdir');
const assert = require('assert');
diff --git a/test/parallel/test-fs-promises-file-handle-stat.js b/test/parallel/test-fs-promises-file-handle-stat.js
index 22b9c6476a..7d44b8e3da 100644
--- a/test/parallel/test-fs-promises-file-handle-stat.js
+++ b/test/parallel/test-fs-promises-file-handle-stat.js
@@ -2,10 +2,10 @@
const common = require('../common');
-// The following tests validate base functionality for the fs/promises
+// The following tests validate base functionality for the fs.promises
// FileHandle.stat method.
-const { open } = require('fs/promises');
+const { open } = require('fs').promises;
const path = require('path');
const tmpdir = require('../common/tmpdir');
const assert = require('assert');
diff --git a/test/parallel/test-fs-promises-file-handle-write.js b/test/parallel/test-fs-promises-file-handle-write.js
index b5c83a1690..d7812745c5 100644
--- a/test/parallel/test-fs-promises-file-handle-write.js
+++ b/test/parallel/test-fs-promises-file-handle-write.js
@@ -2,11 +2,11 @@
const common = require('../common');
-// The following tests validate base functionality for the fs/promises
+// The following tests validate base functionality for the fs.promises
// FileHandle.read method.
const fs = require('fs');
-const { open } = require('fs/promises');
+const { open } = fs.promises;
const path = require('path');
const tmpdir = require('../common/tmpdir');
const assert = require('assert');
diff --git a/test/parallel/test-fs-promises-file-handle-writeFile.js b/test/parallel/test-fs-promises-file-handle-writeFile.js
index 196b6f8db8..a53384cc22 100644
--- a/test/parallel/test-fs-promises-file-handle-writeFile.js
+++ b/test/parallel/test-fs-promises-file-handle-writeFile.js
@@ -2,11 +2,11 @@
const common = require('../common');
-// The following tests validate base functionality for the fs/promises
+// The following tests validate base functionality for the fs.promises
// FileHandle.readFile method.
const fs = require('fs');
-const { open } = require('fs/promises');
+const { open } = fs.promises;
const path = require('path');
const tmpdir = require('../common/tmpdir');
const assert = require('assert');
diff --git a/test/parallel/test-fs-promises-readfile.js b/test/parallel/test-fs-promises-readfile.js
index 1bf49503c3..4334673c30 100644
--- a/test/parallel/test-fs-promises-readfile.js
+++ b/test/parallel/test-fs-promises-readfile.js
@@ -4,7 +4,7 @@ const common = require('../common');
const assert = require('assert');
const path = require('path');
-const { writeFile, readFile } = require('fs/promises');
+const { writeFile, readFile } = require('fs').promises;
const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
diff --git a/test/parallel/test-fs-promises-writefile.js b/test/parallel/test-fs-promises-writefile.js
index 280bce8642..1bb6945c67 100644
--- a/test/parallel/test-fs-promises-writefile.js
+++ b/test/parallel/test-fs-promises-writefile.js
@@ -2,7 +2,7 @@
const common = require('../common');
const fs = require('fs');
-const fsPromises = require('fs/promises');
+const fsPromises = fs.promises;
const path = require('path');
const tmpdir = require('../common/tmpdir');
const assert = require('assert');
diff --git a/test/parallel/test-fs-promises.js b/test/parallel/test-fs-promises.js
index ba3a91d5b3..43b5da7004 100644
--- a/test/parallel/test-fs-promises.js
+++ b/test/parallel/test-fs-promises.js
@@ -5,7 +5,7 @@ const assert = require('assert');
const tmpdir = require('../common/tmpdir');
const fixtures = require('../common/fixtures');
const path = require('path');
-const fsPromises = require('fs/promises');
+const fsPromises = require('fs').promises;
const {
access,
chmod,
diff --git a/test/parallel/test-fs-syncwritestream.js b/test/parallel/test-fs-syncwritestream.js
index a014277a6b..8fbe665a40 100644
--- a/test/parallel/test-fs-syncwritestream.js
+++ b/test/parallel/test-fs-syncwritestream.js
@@ -6,8 +6,8 @@ const stream = require('stream');
const fs = require('fs');
const path = require('path');
-// require('internal/fs').SyncWriteStream is used as a stdio implementation
-// when stdout/stderr point to files.
+// require('internal/fs/utils').SyncWriteStream is used as a stdio
+// implementation when stdout/stderr point to files.
if (process.argv[2] === 'child') {
// Note: Calling console.log() is part of this test as it exercises the
diff --git a/test/parallel/test-internal-fs-syncwritestream.js b/test/parallel/test-internal-fs-syncwritestream.js
index c474d21cb4..c751baf555 100644
--- a/test/parallel/test-internal-fs-syncwritestream.js
+++ b/test/parallel/test-internal-fs-syncwritestream.js
@@ -5,7 +5,7 @@ const common = require('../common');
const assert = require('assert');
const fs = require('fs');
const path = require('path');
-const SyncWriteStream = require('internal/fs').SyncWriteStream;
+const SyncWriteStream = require('internal/fs/utils').SyncWriteStream;
const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
diff --git a/test/parallel/test-internal-fs.js b/test/parallel/test-internal-fs.js
index 9bc0a98b09..2e47e2a382 100644
--- a/test/parallel/test-internal-fs.js
+++ b/test/parallel/test-internal-fs.js
@@ -2,7 +2,7 @@
'use strict';
const common = require('../common');
-const fs = require('internal/fs');
+const fs = require('internal/fs/utils');
// Valid encodings and no args should not throw.
fs.assertEncoding();