From 371b648d1b548be554cbaa4e252820d52e84eb1f 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. PR-URL: https://github.com/nodejs/node/pull/13259 Reviewed-By: Refael Ackermann Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- 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 ddabc20b39026f..0e7e96a565a83d 100644 --- a/test/parallel/test-readline-interface.js +++ b/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