test: refactor test-repl-tab-complete · nodejs/node@180fd39 · GitHub
Skip to content

Commit 180fd39

Browse files
thefourtheyecjihrig
authored andcommitted
test: refactor test-repl-tab-complete
The original test uses a variable to explicitly count how many times the callback is invoked. This patch uses common.mustCall() to track if the callback is called or not. This makes the test more robust, as we don't explicitly hardcode the number of times to be called. PR-URL: #2122 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 84b3915 commit 180fd39

1 file changed

Lines changed: 37 additions & 47 deletions

File tree

test/parallel/test-repl-tab-complete.js

Lines changed: 37 additions & 47 deletions

0 commit comments

Comments
 (0)