Skip to content

Commit 82dfa56

Browse files
Trottgibfahn
authored andcommitted
test: remove fixturesDir from common module
Remove common.fixturesDir. All tests now use the the common/fixtures module instead. PR-URL: #17400 Backport-PR-URL: #17770 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 1be566d commit 82dfa56

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

test/common/README.md

-5
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,6 @@ Returns a new promise that will propagate `promise` resolution or rejection if
124124
that happens within the `timeoutMs` timespan, or rejects with `error` as
125125
a reason otherwise.
126126

127-
### fixturesDir
128-
* return [&lt;String>]
129-
130-
Path to the 'fixtures' directory.
131-
132127
### getArrayBufferViews(buf)
133128
* `buf` [&lt;Buffer>]
134129
* return [&lt;ArrayBufferView&#91;&#93;>]

test/common/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ const testRoot = process.env.NODE_TEST_DIR ?
3636

3737
const noop = () => {};
3838

39-
exports.fixturesDir = fixturesDir;
40-
4139
// Using a `.` prefixed name, which is the convention for "hidden" on POSIX,
4240
// gets tools to ignore it by default or by simple rules, especially eslint.
4341
let tmpDirName = '.tmp';
@@ -314,7 +312,7 @@ exports.childShouldThrowAndAbort = function() {
314312

315313
exports.ddCommand = function(filename, kilobytes) {
316314
if (exports.isWindows) {
317-
const p = path.resolve(exports.fixturesDir, 'create-file.js');
315+
const p = path.resolve(fixturesDir, 'create-file.js');
318316
return `"${process.argv[0]}" "${p}" "${filename}" ${kilobytes * 1024}`;
319317
} else {
320318
return `dd if=/dev/zero of="${filename}" bs=1024 count=${kilobytes}`;

0 commit comments

Comments
 (0)