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

Function testBytesAsyncAbort

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

Source from the content-addressed store, hash-verified

45}
46
47async function testBytesAsyncAbort() {
48 await assert.rejects(
49 () => bytes(from('data'), { signal: AbortSignal.abort() }),
50 { name: 'AbortError' },
51 );
52}
53
54async function testBytesEmpty() {
55 const data = await bytes(from([]));

Calls 3

abortMethod · 0.65
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…