Skip to content
Myr

Remove deprecated option `stripEof` (#238)

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 99384cd · Browse files · 2 files+0 added−10 removed
This commit

State

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

Diff stats

2 files+0 added−10 removed

  • other:+0 added−10 removed

2 files+0 added−10 removed

modified:index.js-5 removed
84 unmodified lines
85 cwd: options.localDir86 });87 }8889 // TODO: Remove in the next major release90 if (options.stripEof === false) {91 options.stripFinalNewline = false;92 }9389 options.stdio = stdio(options);9091 if (process.platform === 'win32' && path.basename(command, '.exe') === 'cmd') {92 // #116
364 unmodified lines
modified:test.js-5 removed
118 unmodified lines
119 const error = execa.sync('fail', {reject: false});120 t.is(error.exitCode, 2);121});122123test('stripEof option (legacy)', async t => {124 const {stdout} = await execa('noop', ['foo'], {stripEof: false});125 t.is(stdout, 'foo\n');126});127123test('stripFinalNewline option', async t => {124 const {stdout} = await execa('noop', ['foo'], {stripFinalNewline: false});125 t.is(stdout, 'foo\n');126});
515 unmodified lines