Skip to content
Permalink
Browse files
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 55de0136b3eac2d9a92f390a19f070b9c568fff9
Showing 1 changed file with 13 additions and 0 deletions.
@@ -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,

0 comments on commit 55de013

Please sign in to comment.