Browse Source

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

This is more correct.
Fixes them from failing with the updated readline behavior.
v0.9.1-release
Nathan Rajlich 13 years ago
parent
commit
8652c11031
  1. 2
      test/simple/test-repl-.save.load.js
  2. 2
      test/simple/test-repl-autolibs.js
  3. 2
      test/simple/test-repl-tab-complete.js

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');
});
}
}

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');
});
}
}

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');
});
}
}

Loading…
Cancel
Save