MCPcopy
hub / github.com/sindresorhus/execa / assertStreamOutput

Function assertStreamOutput

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

Source from the content-addressed store, hash-verified

33};
34
35export const assertStreamOutput = async (t, stream, expectedOutput = foobarString) => {
36 t.is(await text(stream), expectedOutput);
37};
38
39export const assertStreamDataEvents = async (t, stream, expectedOutput = foobarString) => {
40 t.is(await getStream(stream), expectedOutput);

Callers 15

testAsyncIterationFunction · 0.90
testTextOutputFunction · 0.90
writable.jsFile · 0.90
duplex.jsFile · 0.90
readable.jsFile · 0.90
testReadableDefaultFunction · 0.90
testBufferingFunction · 0.90
testBufferDataFunction · 0.90
testHighWaterMarkFunction · 0.90
testBigOutputFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…