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 committed 2020-02-05 13:59:52 +01:00
1 parent afe353061b
commit f295ba5d2c
1 file changed
+822 -1127
File diff suppressed because it is too large. Load diff