Permalink
Browse files

test: make the ArrayStream in repl tests write a '\n'

This is more correct.
Fixes them from failing with the updated readline behavior.
  • Loading branch information...
1 parent 8752cee commit 8652c11031cf89d042aa9f0b9c0f33e60ab18c97 @TooTallNate TooTallNate committed Apr 6, 2012
View
2 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');
});
}
}
View
2 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');
});
}
}
View
2 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');
});
}
}

0 comments on commit 8652c11

Please sign in to comment.