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

Function assertStreamChunks

test/helpers/convert.js:47–49  ·  view source on GitHub ↗
(t, stream, expectedOutput)

Source from the content-addressed store, hash-verified

45};
46
47export const assertStreamChunks = async (t, stream, expectedOutput) => {
48 t.deepEqual(await stream.toArray(), expectedOutput);
49};
50
51export const assertSubprocessOutput = async (t, subprocess, expectedOutput = foobarString, fdNumber = 1) => {
52 const result = await subprocess;

Callers 1

readable.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected