Skip to content

Commit

Permalink
test: use mustCall() in test-readline-interface
Browse files Browse the repository at this point in the history
Use `common.mustCall()` to make sure noop function is called as
expected.

PR-URL: #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>
  • Loading branch information
Trott authored and jasnell committed Jun 5, 2017
1 parent 50b5f8b commit 9df8e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-readline-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9df8e2a

Please sign in to comment.