Skip to content

Commit

Permalink
failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanis Benson committed May 6, 2019
1 parent 075faf3 commit b53e9d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.js
Expand Up @@ -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 => {
Expand Down

0 comments on commit b53e9d9

Please sign in to comment.