Skip to content

Commit 371b648

Browse files
TrottMylesBorins
authored andcommittedAug 16, 2017
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 3808e37 commit 371b648

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
@@ -541,7 +541,7 @@ function isWarned(emitter) {
541541
});
542542

543543
const rl = readline.createInterface({
544-
input: new Readable({ read: () => {} }),
544+
input: new Readable({ read: common.mustCall() }),
545545
output: output,
546546
prompt: '$ ',
547547
terminal: terminal

0 commit comments

Comments
 (0)