()
| 95 | } |
| 96 | |
| 97 | async function testArraySyncLimit() { |
| 98 | function* gen() { |
| 99 | yield new Uint8Array(100); |
| 100 | yield new Uint8Array(100); |
| 101 | } |
| 102 | const source = fromSync(gen()); |
| 103 | assert.throws( |
| 104 | () => arraySync(source, { limit: 50 }), |
| 105 | { name: 'RangeError' }, |
| 106 | ); |
| 107 | } |
| 108 | |
| 109 | async function testArrayAsync() { |
| 110 | async function* gen() { |
no test coverage detected
searching dependent graphs…