Skip to content

Commit

Permalink
Fix tests on Mac (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored and sindresorhus committed Jun 11, 2019
1 parent 173d19e commit 55337f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.js
Expand Up @@ -289,8 +289,8 @@ test('execa() returns a promise with kill() and pid', t => {
});

test('child_process.spawn() errors are propagated', async t => {
const {exitCodeName} = await t.throwsAsync(execa('noop', {uid: -1}));
t.is(exitCodeName, process.platform === 'win32' ? 'ENOTSUP' : 'EINVAL');
const {failed} = await t.throwsAsync(execa('noop', {uid: -1}));
t.true(failed);
});

test('child_process.spawnSync() errors are propagated with a correct shape', t => {
Expand Down

0 comments on commit 55337f7

Please sign in to comment.