Skip to content
Myr

Fix tests on Mac (#283)

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

authored by ehmicky · committed by Sindre Sorhus · parent 173d19e · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:test.js+2 added-2 removed
287 unmodified lines
288 t.is(typeof pid, 'number');289});290291test('child_process.spawn() errors are propagated', async t => {292 const {exitCodeName} = await t.throwsAsync(execa('noop', {uid: -1}));293 t.is(exitCodeName, process.platform === 'win32' ? 'ENOTSUP' : 'EINVAL');292 const {failed} = await t.throwsAsync(execa('noop', {uid: -1}));293 t.true(failed);294});295296test('child_process.spawnSync() errors are propagated with a correct shape', t => {297 const {failed} = t.throws(() => {
503 unmodified lines