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

Function testBytesAsync

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

Source from the content-addressed store, hash-verified

33}
34
35async function testBytesAsync() {
36 const data = await bytes(from('hello-async'));
37 assert.deepStrictEqual(data, new TextEncoder().encode('hello-async'));
38}
39
40async function testBytesAsyncLimit() {
41 await assert.rejects(

Calls 3

encodeMethod · 0.80
bytesFunction · 0.50
fromFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…