Skip to content

Commit

Permalink
Fixup: Undo previously added testchange of unrelated code
Browse files Browse the repository at this point in the history
  • Loading branch information
zokker13 committed May 23, 2019
1 parent 99a6aaf commit 285a6fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test.js
Expand Up @@ -225,16 +225,16 @@ test('stripFinalNewline: false', async t => {
t.is(stdout, 'foo\n');
});

test('stripFinalNewline in sync mode', t => {
const {stdout} = execa.sync('noop', ['foo'], {stripFinalNewline: true});
t.is(stdout, 'foo');
});

test('stripFinalNewline on failure', async t => {
const {stderr} = await t.throwsAsync(execa('noop-throw', ['foo'], {stripFinalNewline: true}));
t.is(stderr, 'foo');
});

test('stripFinalNewline in sync mode', t => {
const {stdout} = execa.sync('noop', ['foo'], {stripFinalNewline: true});
t.is(stdout, 'foo');
});

test('stripFinalNewline in sync mode on failure', t => {
const {stderr} = t.throws(() => {
execa.sync('noop-throw', ['foo'], {stripFinalNewline: true});
Expand Down

0 comments on commit 285a6fe

Please sign in to comment.