From 06b77d874bf6ad80dde16c5bdd1a829b6b4fa37d Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 27 May 2017 14:28:26 -0700 Subject: [PATCH] test: use mustCall() in test-readline-interface Use `common.mustCall()` to make sure noop function is called as expected. --- test/parallel/test-readline-interface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-readline-interface.js b/test/parallel/test-readline-interface.js index 86c102c45f1107..6f8849a322618a 100644 --- a/test/parallel/test-readline-interface.js +++ b/test/parallel/test-readline-interface.js @@ -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