aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-use-global.js
diff options
context:
space:
mode:
authorEvan Lucas <evanlucas@me.com>2016-08-17 09:47:13 -0500
committerEvan Lucas <evanlucas@me.com>2016-08-19 11:48:52 -0500
commit76007079ec866317c0119b1f4526d0f67b3998fc (patch)
tree5dc37255008e8f7de9514e4a7087b5b99839411e /test/parallel/test-repl-use-global.js
parent8ff3d61d8ba90fde01827643db3d87ee97f502e6 (diff)
downloadandroid-node-v8-76007079ec866317c0119b1f4526d0f67b3998fc.tar.gz
android-node-v8-76007079ec866317c0119b1f4526d0f67b3998fc.tar.bz2
android-node-v8-76007079ec866317c0119b1f4526d0f67b3998fc.zip
Revert "repl,util: insert carriage returns in output"
This reverts commit fce4b981eacbce0b85a2418d042f1f67d40e9834. This was a breaking change and should have been marked semver-major. The change that was made altered the output of util.format() and util.inspect(). With how much those are used in the wild, this type of change deserves more justification. Fixes: https://github.com/nodejs/node/issues/8138 PR-URL: https://github.com/nodejs/node/pull/8143 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-repl-use-global.js')
-rw-r--r--test/parallel/test-repl-use-global.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-repl-use-global.js b/test/parallel/test-repl-use-global.js
index 7ac6088679..79e13cd819 100644
--- a/test/parallel/test-repl-use-global.js
+++ b/test/parallel/test-repl-use-global.js
@@ -24,7 +24,7 @@ const globalTest = (useGlobal, cb, output) => (err, repl) => {
let str = '';
output.on('data', (data) => (str += data));
global.lunch = 'tacos';
- repl.write('global.lunch;\r\n');
+ repl.write('global.lunch;\n');
repl.close();
delete global.lunch;
cb(null, str.trim());
@@ -54,8 +54,8 @@ const processTest = (useGlobal, cb, output) => (err, repl) => {
output.on('data', (data) => (str += data));
// if useGlobal is false, then `let process` should work
- repl.write('let process;\r\n');
- repl.write('21 * 2;\r\n');
+ repl.write('let process;\n');
+ repl.write('21 * 2;\n');
repl.close();
cb(null, str.trim());
};
@@ -63,7 +63,7 @@ const processTest = (useGlobal, cb, output) => (err, repl) => {
for (const option of processTestCases) {
runRepl(option, processTest, common.mustCall((err, output) => {
assert.ifError(err);
- assert.strictEqual(output, 'undefined\r\n42');
+ assert.strictEqual(output, 'undefined\n42');
}));
}