()
| 70 | } |
| 71 | |
| 72 | async function testArrayBufferAsync() { |
| 73 | const ab = await arrayBuffer(from(new Uint8Array([10, 20, 30]))); |
| 74 | assert.ok(ab instanceof ArrayBuffer); |
| 75 | assert.strictEqual(ab.byteLength, 3); |
| 76 | const view = new Uint8Array(ab); |
| 77 | assert.deepStrictEqual(view, new Uint8Array([10, 20, 30])); |
| 78 | } |
| 79 | |
| 80 | // ============================================================================= |
| 81 | // arraySync / array |
no test coverage detected
searching dependent graphs…