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

Function testBytesSyncBasic

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

Source from the content-addressed store, hash-verified

21// =============================================================================
22
23async function testBytesSyncBasic() {
24 const data = bytesSync(fromSync('hello'));
25 assert.deepStrictEqual(data, new TextEncoder().encode('hello'));
26}
27
28async function testBytesSyncLimit() {
29 assert.throws(

Calls 3

bytesSyncFunction · 0.85
encodeMethod · 0.80
fromSyncFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…