From b53e9d99f3180f19249b4ef1a79a14378161a70a Mon Sep 17 00:00:00 2001 From: Yanis Benson Date: Mon, 6 May 2019 13:55:03 +0300 Subject: [PATCH] failing test --- test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.js b/test.js index 2c7e017dd1..d8d9df2daf 100644 --- a/test.js +++ b/test.js @@ -336,6 +336,12 @@ if (process.platform !== 'win32') { const cp = execa('non-executable'); await t.throwsAsync(cp); }); + + test('execa() rejects with correct error and doesn\'t throw if running non-executable with input', async t => { + await t.throwsAsync(() => { + return execa('non-executable', {input: 'Hey!'}); + }, /EACCES/); + }); } test('error.killed is true if process was killed directly', async t => {