()
| 62 | // ============================================================================= |
| 63 | |
| 64 | async function testArrayBufferSyncBasic() { |
| 65 | const ab = arrayBufferSync(fromSync(new Uint8Array([1, 2, 3]))); |
| 66 | assert.ok(ab instanceof ArrayBuffer); |
| 67 | assert.strictEqual(ab.byteLength, 3); |
| 68 | const view = new Uint8Array(ab); |
| 69 | assert.deepStrictEqual(view, new Uint8Array([1, 2, 3])); |
| 70 | } |
| 71 | |
| 72 | async function testArrayBufferAsync() { |
| 73 | const ab = await arrayBuffer(from(new Uint8Array([10, 20, 30]))); |
no test coverage detected
searching dependent graphs…