Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test: improve lib/readline.js coverage
PR-URL: #42686
Refs: https://coverage.nodejs.org/coverage-a0461255c05c79cf/lib/readline.js.html#L105
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
  • Loading branch information
fossamagna authored and RafaelGSS committed Sep 26, 2022
1 parent c209bd6 commit 55de013
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/parallel/test-readline-interface.js
Expand Up @@ -71,6 +71,19 @@ function assertCursorRowsAndCols(rli, rows, cols) {
assert(rl instanceof readline.Interface);
}

{
const fi = new FakeInput();
const rli = new readline.Interface(
fi,
fi,
common.mustCall((line) => [[], line]),
true,
);
assert(rli instanceof readline.Interface);
fi.emit('data', 'a\t');
rli.close();
}

[
undefined,
50,
Expand Down

0 comments on commit 55de013

Please sign in to comment.