(cmds, repl)
| 49 | } |
| 50 | |
| 51 | function runAndWait(cmds, repl) { |
| 52 | const promise = repl.inputStream.wait(); |
| 53 | for (const cmd of cmds) { |
| 54 | repl.inputStream.run(cmd); |
| 55 | } |
| 56 | return promise; |
| 57 | } |
| 58 | |
| 59 | async function tests(options) { |
| 60 | const repl = new REPLServer({ |