Skip to content

Commit 1f19f0c

Browse files
authored
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent 261e267 commit 1f19f0c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/parallel/test-readline-interface.js

+13
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ function assertCursorRowsAndCols(rli, rows, cols) {
7171
assert(rl instanceof readline.Interface);
7272
}
7373

74+
{
75+
const fi = new FakeInput();
76+
const rli = new readline.Interface(
77+
fi,
78+
fi,
79+
common.mustCall((line) => [[], line]),
80+
true,
81+
);
82+
assert(rli instanceof readline.Interface);
83+
fi.emit('data', 'a\t');
84+
rli.close();
85+
}
86+
7487
[
7588
undefined,
7689
50,

0 commit comments

Comments
 (0)