MCPcopy Index your code
hub / github.com/nodejs/node / testBytesEmpty

Function testBytesEmpty

test/parallel/test-stream-iter-consumers-bytes.js:54–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54async function testBytesEmpty() {
55 const data = await bytes(from([]));
56 assert.ok(data instanceof Uint8Array);
57 assert.strictEqual(data.byteLength, 0);
58}
59
60// =============================================================================
61// arrayBufferSync / arrayBuffer

Calls 3

bytesFunction · 0.50
fromFunction · 0.50
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…