From 88f52279de0c832b4dd40291a0b5fbd8c79a7337 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Tue, 11 Jun 2019 10:00:00 +0200 Subject: [PATCH] Fix tests on Mac --- test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.js b/test.js index a392ca240..04bd47098 100644 --- a/test.js +++ b/test.js @@ -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 => {