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 <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Trott authored and MylesBorins committed Aug 16, 2017
1 parent 3808e37 commit 371b648
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 @@ -541,7 +541,7 @@ function isWarned(emitter) {
});

const rl = readline.createInterface({
input: new Readable({ read: () => {} }),
input: new Readable({ read: common.mustCall() }),
output: output,
prompt: '$ ',
terminal: terminal
Expand Down

0 comments on commit 371b648

Please sign in to comment.