MCPcopy Create free account
hub / github.com/nodejs/node / testMergeEmpty

Function testMergeEmpty

test/parallel/test-stream-iter-consumers-merge.js:48–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48async function testMergeEmpty() {
49 const merged = merge();
50 const batches = [];
51 for await (const batch of merged) {
52 batches.push(batch);
53 }
54 assert.strictEqual(batches.length, 0);
55}
56
57async function testMergeWithAbortSignal() {
58 const merged = merge(from('data'), { signal: AbortSignal.abort() });

Calls 2

mergeFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected