(data: string)
| 46 | } |
| 47 | |
| 48 | write(data: string) { |
| 49 | this.resetOutput() |
| 50 | |
| 51 | if (((this.stdin as Readable).readable)) { |
| 52 | this.stdin.emit('data', data) |
| 53 | } |
| 54 | else if (isWritable(this.stdin)) { |
| 55 | this.stdin.write(data) |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | resetOutput() { |
| 60 | this.stdout = '' |
no test coverage detected