()
| 82 | // ============================================================================= |
| 83 | |
| 84 | async function testArraySyncBasic() { |
| 85 | function* gen() { |
| 86 | yield new Uint8Array([1]); |
| 87 | yield new Uint8Array([2]); |
| 88 | yield new Uint8Array([3]); |
| 89 | } |
| 90 | const chunks = arraySync(fromSync(gen())); |
| 91 | assert.strictEqual(chunks.length, 3); |
| 92 | assert.deepStrictEqual(chunks[0], new Uint8Array([1])); |
| 93 | assert.deepStrictEqual(chunks[1], new Uint8Array([2])); |
| 94 | assert.deepStrictEqual(chunks[2], new Uint8Array([3])); |
| 95 | } |
| 96 | |
| 97 | async function testArraySyncLimit() { |
| 98 | function* gen() { |
no test coverage detected
searching dependent graphs…