Browse Source

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>
v6.x
Rich Trott 8 years ago
committed by Myles Borins
parent
commit
371b648d1b
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 2
      test/parallel/test-readline-interface.js

2
test/parallel/test-readline-interface.js

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

Loading…
Cancel
Save