Skip to content

Commit

Permalink
Remove deprecated option stripEof (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored and sindresorhus committed May 12, 2019
1 parent 99384cd commit 7c96b58
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions index.js
Expand Up @@ -86,11 +86,6 @@ function handleArgs(command, args, options = {}) {
});
}

// TODO: Remove in the next major release
if (options.stripEof === false) {
options.stripFinalNewline = false;
}

options.stdio = stdio(options);

if (process.platform === 'win32' && path.basename(command, '.exe') === 'cmd') {
Expand Down
5 changes: 0 additions & 5 deletions test.js
Expand Up @@ -120,11 +120,6 @@ test('skip throwing when using reject option in sync mode', t => {
t.is(error.exitCode, 2);
});

test('stripEof option (legacy)', async t => {
const {stdout} = await execa('noop', ['foo'], {stripEof: false});
t.is(stdout, 'foo\n');
});

test('stripFinalNewline option', async t => {
const {stdout} = await execa('noop', ['foo'], {stripFinalNewline: false});
t.is(stdout, 'foo\n');
Expand Down

0 comments on commit 7c96b58

Please sign in to comment.