Skip to content

Commit

Permalink
readline: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed May 24, 2015
1 parent 2d9a665 commit 48b5e5d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/parallel/test-readline-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,18 @@ function isWarned(emitter) {

// constructor throws if completer is not a function or undefined
fi = new FakeInput();
assert.throws(function () {
assert.throws(function() {
readline.createInterface({
input: fi,
completer: 'string is not valid'
});
}, function (err) {
if ( (err instanceof TypeError) && /Argument \'completer\' must be a function/.test(err) ) {
}, function(err) {
if (err instanceof TypeError) {
if (/Argument \'completer\' must be a function/.test(err)) {
return true;
}
}
return false;
});

// sending a multi-byte utf8 char over multiple writes
Expand Down

0 comments on commit 48b5e5d

Please sign in to comment.