summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-autolibs.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-autolibs.js
parent8ff3d61d8ba90fde01827643db3d87ee97f502e6 (diff)
downloadnode-new-76007079ec866317c0119b1f4526d0f67b3998fc.tar.gz
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-autolibs.js')
-rw-r--r--test/parallel/test-repl-autolibs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-repl-autolibs.js b/test/parallel/test-repl-autolibs.js
index 1be2c33d28..15f779d3b1 100644
--- a/test/parallel/test-repl-autolibs.js
+++ b/test/parallel/test-repl-autolibs.js
@@ -19,7 +19,7 @@ function test1() {
if (data.length) {
// inspect output matches repl output
- assert.equal(data, util.inspect(require('fs'), null, 2, false) + '\r\n');
+ assert.equal(data, util.inspect(require('fs'), null, 2, false) + '\n');
// globally added lib matches required lib
assert.equal(global.fs, require('fs'));
test2();
@@ -36,7 +36,7 @@ function test2() {
gotWrite = true;
if (data.length) {
// repl response error message
- assert.equal(data, '{}\r\n');
+ assert.equal(data, '{}\n');
// original value wasn't overwritten
assert.equal(val, global.url);
}