test: refactor test-readline-interface.js

This reduces the code lines required to run the tests by abstracting
the constructor call. It also moves tests out of a for loop that
where miss placed.

PR-URL: https://github.com/nodejs/node/pull/31423
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Ruben Bridgewater authored and Shelley Vohr committed 2020-02-17 12:05:23 -08:00
1 parent e7fea14c7b
commit d2a12d3af8
1 file changed
+822 -1127
File diff suppressed because it is too large. Load diff