test: reduce brittleness of tab complete test · nodejs/node@0eb3ed5 · GitHub
Skip to content

Commit 0eb3ed5

Browse files
Matt Loringjasnell
authored andcommitted
test: reduce brittleness of tab complete test
test-repl-tab-complete includes tests that ensure that certain keys do not appear in tab completions or that completion does not crash the repl. It performed these tests by comparing completion output to a hardcoded list of expected keys. This list is made incorrect by any api changes that occur when new versions of V8 are introduced. With this change, we assert that the specific keys to be avoided are not present in the output instead. PR-URL: #5772 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a38d6ad commit 0eb3ed5

1 file changed

Lines changed: 6 additions & 77 deletions

File tree

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

Lines changed: 6 additions & 77 deletions

0 commit comments

Comments
 (0)