()
| 107 | } |
| 108 | |
| 109 | async function testArrayAsync() { |
| 110 | async function* gen() { |
| 111 | yield [new Uint8Array([1])]; |
| 112 | yield [new Uint8Array([2])]; |
| 113 | } |
| 114 | const chunks = await array(gen()); |
| 115 | assert.strictEqual(chunks.length, 2); |
| 116 | assert.deepStrictEqual(chunks[0], new Uint8Array([1])); |
| 117 | assert.deepStrictEqual(chunks[1], new Uint8Array([2])); |
| 118 | } |
| 119 | |
| 120 | async function testArrayAsyncLimit() { |
| 121 | async function* gen() { |
no test coverage detected
searching dependent graphs…