()
| 60 | |
| 61 | // PullSync source error propagates |
| 62 | function testPullSyncSourceError() { |
| 63 | function* failingSource() { |
| 64 | yield [new TextEncoder().encode('a')]; |
| 65 | throw new Error('sync source boom'); |
| 66 | } |
| 67 | assert.throws(() => { |
| 68 | // eslint-disable-next-line no-unused-vars |
| 69 | for (const _ of pullSync(failingSource())) { /* consume */ } |
| 70 | }, { message: 'sync source boom' }); |
| 71 | } |
| 72 | |
| 73 | // PullSync with empty source |
| 74 | function testPullSyncEmptySource() { |
no test coverage detected
searching dependent graphs…