()
| 39 | fail() { failCalled = true; }, |
| 40 | }; |
| 41 | function* badSource() { |
| 42 | yield [new Uint8Array([1])]; |
| 43 | throw new Error('source error'); |
| 44 | } |
| 45 | assert.throws( |
| 46 | () => pipeToSync(badSource(), writer, { preventFail: true }), |
| 47 | { message: 'source error' }, |
no outgoing calls
no test coverage detected