From 89f547bb02b5be76909ebb4f909a7ea29724bfd5 Mon Sep 17 00:00:00 2001 From: MURAKAMI Masahiko Date: Mon, 11 Apr 2022 09:27:47 +0900 Subject: [PATCH] test: inlining completer function --- test/parallel/test-readline-interface.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parallel/test-readline-interface.js b/test/parallel/test-readline-interface.js index 956df9ea64e6e4..27a3dba5a701d7 100644 --- a/test/parallel/test-readline-interface.js +++ b/test/parallel/test-readline-interface.js @@ -73,11 +73,10 @@ function assertCursorRowsAndCols(rli, rows, cols) { { const fi = new FakeInput(); - const completer = (line) => [[], line]; const rli = new readline.Interface( fi, fi, - common.mustCallAtLeast(completer), + common.mustCallAtLeast((line) => [[], line]), true, ); assert(rli instanceof readline.Interface);