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

Function testBytesSyncLimit

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

Source from the content-addressed store, hash-verified

26}
27
28async function testBytesSyncLimit() {
29 assert.throws(
30 () => bytesSync(fromSync('hello world'), { limit: 3 }),
31 { name: 'RangeError' },
32 );
33}
34
35async function testBytesAsync() {
36 const data = await bytes(from('hello-async'));

Calls 2

bytesSyncFunction · 0.85
fromSyncFunction · 0.50

Tested by

no test coverage detected