diff options
author | cjihrig <cjihrig@gmail.com> | 2015-11-25 16:38:01 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2015-11-26 21:16:08 -0500 |
commit | f2e319b7578326b0f5adb5c986533d3136404cbd (patch) | |
tree | 65711638400d72e0468ef2df38b7b376c0c79051 /test/parallel/test-repl-end-emits-exit.js | |
parent | 1c8584997346d549dd5ff4bb787f48f52440a9cb (diff) | |
download | android-node-v8-f2e319b7578326b0f5adb5c986533d3136404cbd.tar.gz android-node-v8-f2e319b7578326b0f5adb5c986533d3136404cbd.tar.bz2 android-node-v8-f2e319b7578326b0f5adb5c986533d3136404cbd.zip |
test: move ArrayStream to common
A number of REPL tests define the same ArrayStream object. This
commit moves the repeated code into common.js.
PR-URL: https://github.com/nodejs/node/pull/4027
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/parallel/test-repl-end-emits-exit.js')
-rw-r--r-- | test/parallel/test-repl-end-emits-exit.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/parallel/test-repl-end-emits-exit.js b/test/parallel/test-repl-end-emits-exit.js index e4bc4da78c..2c18b413d6 100644 --- a/test/parallel/test-repl-end-emits-exit.js +++ b/test/parallel/test-repl-end-emits-exit.js @@ -1,15 +1,12 @@ 'use strict'; var common = require('../common'), assert = require('assert'), - Stream = require('stream'), repl = require('repl'), terminalExit = 0, regularExit = 0; -// create a dummy stream that does nothing -var stream = new Stream(); -stream.write = stream.pause = stream.resume = function() {}; -stream.readable = stream.writable = true; +// Create a dummy stream that does nothing +const stream = new common.ArrayStream(); function testTerminalMode() { var r1 = repl.start({ |