From 2aad4e510f1b35a22ff7ddeb2dc44d3b70bca767 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Wed, 6 Mar 2019 12:26:10 +0100 Subject: [PATCH] Fix Windows test --- test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test.js b/test.js index 91fd135a7a..16798f18a9 100644 --- a/test.js +++ b/test.js @@ -438,10 +438,8 @@ if (process.platform !== 'win32') { test('cleanup false - SIGKILL', spawnAndKill, 'SIGKILL', false); } -// See: https://github.com/sindresorhus/execa/issues/56 -const onlyWinFailing = test[process.platform === 'win32' ? 'failing' : 'serial']; -onlyWinFailing('execa.shell() supports the `shell` option', async t => { - const {stdout} = await m.shell('noop foo', { +test('execa.shell() supports the `shell` option', async t => { + const {stdout} = await m.shell('node fixtures/noop foo', { shell: process.platform === 'win32' ? 'cmd.exe' : '/bin/bash' }); t.is(stdout, 'foo');