Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fcfdb6c

Browse filesBrowse files
fossamagnaRafaelGSS
authored andcommitted
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>
1 parent 7ffc037 commit fcfdb6c
Copy full SHA for fcfdb6c

File tree

Expand file treeCollapse file tree

1 file changed

+13
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+13
-0
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-readline-interface.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-readline-interface.js
+13Lines changed: 13 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.