MCPcopy Create free account
hub / github.com/sindresorhus/execa / assertIterableChunks

Function assertIterableChunks

test/helpers/convert.js:43–45  ·  view source on GitHub ↗
(t, asyncIterable, expectedChunks)

Source from the content-addressed store, hash-verified

41};
42
43export const assertIterableChunks = async (t, asyncIterable, expectedChunks) => {
44 t.deepEqual(await arrayFromAsync(asyncIterable), expectedChunks);
45};
46
47export const assertStreamChunks = async (t, stream, expectedOutput) => {
48 t.deepEqual(await stream.toArray(), expectedOutput);

Callers 1

testIterableFunction · 0.90

Calls 1

arrayFromAsyncFunction · 0.85

Tested by

no test coverage detected