test: use mustCall() in test-readline-interface
Use `common.mustCall()` to make sure noop function is called as expected. PR-URL: https://github.com/nodejs/node/pull/13259 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
102e1aa4e3
commit
36867786d0
@ -564,7 +564,7 @@ function isWarned(emitter) {
|
||||
});
|
||||
|
||||
const rl = readline.createInterface({
|
||||
input: new Readable({ read: common.noop }),
|
||||
input: new Readable({ read: common.mustCall() }),
|
||||
output: output,
|
||||
prompt: '$ ',
|
||||
terminal: terminal
|
||||
|
Loading…
x
Reference in New Issue
Block a user