(subject, fn)
| 75 | |
| 76 | it('read stream - with error', async () => { |
| 77 | const hookStream = (subject, fn) => { |
| 78 | const unhook = function (write) { |
| 79 | this.write = write |
| 80 | }.bind(subject, subject.write) |
| 81 | subject.write = fn |
| 82 | return unhook |
| 83 | } |
| 84 | let unhook |
| 85 | try { |
| 86 | const output = [] |
no outgoing calls
no test coverage detected
searching dependent graphs…