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:
Rich Trott 2017-05-27 14:28:26 -07:00
parent 102e1aa4e3
commit 36867786d0

View File

@ -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