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-reset-event.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-reset-event.js')
-rw-r--r-- | test/parallel/test-repl-reset-event.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/parallel/test-repl-reset-event.js b/test/parallel/test-repl-reset-event.js index e6d4eed138..0bd43dcd6c 100644 --- a/test/parallel/test-repl-reset-event.js +++ b/test/parallel/test-repl-reset-event.js @@ -4,12 +4,9 @@ common.globalCheck = false; var assert = require('assert'); var repl = require('repl'); -var Stream = require('stream'); -// create a dummy stream that does nothing -var dummy = new Stream(); -dummy.write = dummy.pause = dummy.resume = function() {}; -dummy.readable = dummy.writable = true; +// Create a dummy stream that does nothing +const dummy = new common.ArrayStream(); function testReset(cb) { var r = repl.start({ |