Skip to content
Myr

Fix test for Node `>= 12.6.0` (#348)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by Sindre Sorhus · parent 19e58fe · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • tests:+3 added−1 removed

1 file+3 added−1 removed

modified:test/test.js+3 added-1 removed
155 unmodified lines
156 await t.throwsAsync(cp);157 });158159 test('execa() rejects with correct error and doesn\'t throw if running non-executable with input', async t => {160 // On Node <12.6.0, `EACCESS` is emitted on `childProcess`.161 // On Node >=12.6.0, `EPIPE` is emitted on `childProcess.stdin`.160 await t.throwsAsync(execa('non-executable', {input: 'Hey!'}), /EACCES/);162 await t.throwsAsync(execa('non-executable', {input: 'Hey!'}), /EACCES|EPIPE/);163 });164}165166if (process.platform !== 'win32') {
54 unmodified lines