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

Function testBytesAsyncLimit

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

Source from the content-addressed store, hash-verified

38}
39
40async function testBytesAsyncLimit() {
41 await assert.rejects(
42 () => bytes(from('hello world'), { limit: 3 }),
43 { name: 'RangeError' },
44 );
45}
46
47async function testBytesAsyncAbort() {
48 await assert.rejects(

Calls 2

bytesFunction · 0.50
fromFunction · 0.50

Tested by

no test coverage detected