From 8652c11031cf89d042aa9f0b9c0f33e60ab18c97 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Fri, 6 Apr 2012 13:50:34 -0700 Subject: [PATCH] test: make the ArrayStream in repl tests write a '\n' This is more correct. Fixes them from failing with the updated readline behavior. --- test/simple/test-repl-.save.load.js | 2 +- test/simple/test-repl-autolibs.js | 2 +- test/simple/test-repl-tab-complete.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/simple/test-repl-.save.load.js b/test/simple/test-repl-.save.load.js index ef31831171..b5749c8c7e 100644 --- a/test/simple/test-repl-.save.load.js +++ b/test/simple/test-repl-.save.load.js @@ -32,7 +32,7 @@ function ArrayStream() { this.run = function(data) { var self = this; data.forEach(function(line) { - self.emit('data', line); + self.emit('data', line + '\n'); }); } } diff --git a/test/simple/test-repl-autolibs.js b/test/simple/test-repl-autolibs.js index 593b6465cb..0f4ae8b387 100644 --- a/test/simple/test-repl-autolibs.js +++ b/test/simple/test-repl-autolibs.js @@ -28,7 +28,7 @@ function ArrayStream() { this.run = function (data) { var self = this; data.forEach(function (line) { - self.emit('data', line); + self.emit('data', line + '\n'); }); } } diff --git a/test/simple/test-repl-tab-complete.js b/test/simple/test-repl-tab-complete.js index 1490598e90..b38eaa13b7 100644 --- a/test/simple/test-repl-tab-complete.js +++ b/test/simple/test-repl-tab-complete.js @@ -30,7 +30,7 @@ function ArrayStream() { this.run = function(data) { var self = this; data.forEach(function(line) { - self.emit('data', line); + self.emit('data', line + '\n'); }); } }