()
| 92 | |
| 93 | // TapSync callback error propagates through sync pipeline |
| 94 | function testTapSyncErrorPropagation() { |
| 95 | const badTap = tapSync(() => { throw new Error('tapSync error'); }); |
| 96 | assert.throws(() => { |
| 97 | // eslint-disable-next-line no-unused-vars |
| 98 | for (const _ of pullSync(fromSync('hello'), badTap)) { /* consume */ } |
| 99 | }, { message: 'tapSync error' }); |
| 100 | } |
| 101 | |
| 102 | // TapSync in a pullSync pipeline passes through data and flush |
| 103 | function testTapSyncInPipeline() { |
no test coverage detected