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

Function assertStreamDataEvents

test/helpers/convert.js:39–41  ·  view source on GitHub ↗
(t, stream, expectedOutput = foobarString)

Source from the content-addressed store, hash-verified

37};
38
39export const assertStreamDataEvents = async (t, stream, expectedOutput = foobarString) => {
40 t.is(await getStream(stream), expectedOutput);
41};
42
43export const assertIterableChunks = async (t, asyncIterable, expectedChunks) => {
44 t.deepEqual(await arrayFromAsync(asyncIterable), expectedChunks);

Callers 1

testDataEventsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected