Skip to content
Myr

Fix failing tests on CI (#624)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by GitHub · parent 2d76897 · Browse files · 1 file+7 added−15 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−15 removed

  • tests:+7 added−15 removed

1 file+7 added−15 removed

modified:test/stream.js+7 added-15 removed
192 unmodified lines
193 const {originalMessage} = await t.throwsAsync(execa('stdin.js', {stdin: throwingGenerator()}));194 t.is(originalMessage, 'generator error');195});196197const testNoIterableOutput = async (t, optionName) => {198 await t.throwsAsync(199 execa('noop.js', {[optionName]: ['foo', 'bar']}),200 {code: 'ERR_INVALID_ARG_VALUE'},201 );202};203204test('stdout option cannot be an iterable', testNoIterableOutput, 'stdout');205test('stderr option cannot be an iterable', testNoIterableOutput, 'stderr');206207const testNoIterableOutputSync = (t, optionName) => {197const testNoIterableOutput = (t, optionName, execaMethod) => {198 t.throws(() => {209 execaSync('noop.js', {[optionName]: ['foo', 'bar']});210 }, {code: 'ERR_INVALID_ARG_VALUE'});199 execaMethod('noop.js', {[optionName]: ['foo', 'bar']});200 }, {message: /cannot be an iterable/});201};202213test('stdout option cannot be an iterable - sync', testNoIterableOutputSync, 'stdout');214test('stderr option cannot be an iterable - sync', testNoIterableOutputSync, 'stderr');203test('stdout option cannot be an iterable', testNoIterableOutput, 'stdout', execa);204test('stderr option cannot be an iterable', testNoIterableOutput, 'stderr', execa);205test('stdout option cannot be an iterable - sync', testNoIterableOutput, 'stdout', execaSync);206test('stderr option cannot be an iterable - sync', testNoIterableOutput, 'stderr', execaSync);207208const testWritableStreamError = async (t, streamName) => {209 const writableStream = new WritableStream({210 start(controller) {
544 unmodified lines