()
| 34 | } |
| 35 | |
| 36 | async wait() { |
| 37 | if (this.waitingForResponse) { |
| 38 | throw new Error('Currently waiting for response to another command'); |
| 39 | } |
| 40 | this.lines = ['']; |
| 41 | for await (const [line] of events.on(this, 'line')) { |
| 42 | if (line.includes(PROMPT)) { |
| 43 | return this.lines; |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | const putIn = new REPLStream(); |
no test coverage detected