diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-07-31 12:12:18 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-07-31 12:12:18 +0400 |
commit | 1a52d6abccf8f314f6b6274076ab88664261437f (patch) | |
tree | 15d7f5c74f7ace3d86af97de40e8064155d63cda /test | |
parent | bae019f1824aafdfbf92d2115ebd9a677cb754f3 (diff) | |
download | android-node-v8-1a52d6abccf8f314f6b6274076ab88664261437f.tar.gz android-node-v8-1a52d6abccf8f314f6b6274076ab88664261437f.tar.bz2 android-node-v8-1a52d6abccf8f314f6b6274076ab88664261437f.zip |
Revert "repl: fix overwrite for this._prompt"
This reverts commit 7166b55015261de8ab69758320f3d9159b3eaadd.
Diffstat (limited to 'test')
-rw-r--r-- | test/simple/test-repl.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/simple/test-repl.js b/test/simple/test-repl.js index ef5b16b064..69b9b54d1e 100644 --- a/test/simple/test-repl.js +++ b/test/simple/test-repl.js @@ -34,8 +34,7 @@ var net = require('net'), 'node repl, in your normal shell.\n' + '(Press Control-D to exit.)\n', expect_npm = prompt_npm + prompt_unix, - server_tcp, server_unix, client_tcp, client_unix, timer, - repl_unix; + server_tcp, server_unix, client_tcp, client_unix, timer; // absolute path to test/fixtures/a.js @@ -100,7 +99,6 @@ function error_test() { } else if (read_buffer.indexOf(prompt_multiline) !== -1) { // Check that you meant to send a multiline test assert.strictEqual(prompt_multiline, client_unix.expect); - assert.equal(repl_unix._prompt, prompt_multiline); read_buffer = ''; if (client_unix.list && client_unix.list.length > 0) { send_expect(client_unix.list); @@ -277,13 +275,12 @@ function unix_test() { socket.end(); }); - repl_unix = repl.start({ + repl.start({ prompt: prompt_unix, input: socket, output: socket, useGlobal: true - }); - repl_unix.context.message = message; + }).context.message = message; }); server_unix.on('listening', function() { |