Skip to content

Commit 9df8e2a

Browse files
Trottjasnell
authored andcommitted
test: use mustCall() in test-readline-interface
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]>
1 parent 50b5f8b commit 9df8e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-readline-interface.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ function isWarned(emitter) {
564564
});
565565

566566
const rl = readline.createInterface({
567-
input: new Readable({ read: common.noop }),
567+
input: new Readable({ read: common.mustCall() }),
568568
output: output,
569569
prompt: '$ ',
570570
terminal: terminal

0 commit comments

Comments
 (0)