Skip to content

Commit

Permalink
Fix tests on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 11, 2019
1 parent e754215 commit 1a0031d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.js
Expand Up @@ -301,8 +301,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 1a0031d

Please sign in to comment.