summaryrefslogtreecommitdiff
path: root/test/common/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/index.js')
-rw-r--r--test/common/index.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/common/index.js b/test/common/index.js
index 8254f54101..369f23f790 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -27,7 +27,6 @@ const fs = require('fs');
const assert = require('assert');
const os = require('os');
const { exec, execSync, spawn, spawnSync } = require('child_process');
-const stream = require('stream');
const util = require('util');
const { fixturesDir } = require('./fixtures');
const tmpdir = require('./tmpdir');
@@ -511,23 +510,6 @@ exports.skip = function(msg) {
process.exit(0);
};
-// A stream to push an array into a REPL
-function ArrayStream() {
- this.run = function(data) {
- data.forEach((line) => {
- this.emit('data', `${line}\n`);
- });
- };
-}
-
-util.inherits(ArrayStream, stream.Stream);
-exports.ArrayStream = ArrayStream;
-ArrayStream.prototype.readable = true;
-ArrayStream.prototype.writable = true;
-ArrayStream.prototype.pause = noop;
-ArrayStream.prototype.resume = noop;
-ArrayStream.prototype.write = noop;
-
// Returns true if the exit code "exitCode" and/or signal name "signal"
// represent the exit code and/or signal name of a node process that aborted,
// false otherwise.