Skip to content

Commit

Permalink
Add failing test for #116
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren committed Dec 19, 2017
1 parent 79a496a commit c24f796
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions fixtures/hello.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ECHO Hello World
8 changes: 8 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ test('execa()', async t => {
t.is(stdout, 'foo');
});

if (process.platform === 'win32') {
test.failing('execa() - cmd file', async t => {
const {stdout} = await m('hello.cmd');

t.is(result, 'Hello World');
});
}

test('buffer', async t => {
const {stdout} = await m('noop', ['foo'], {encoding: null});
t.true(Buffer.isBuffer(stdout));
Expand Down

0 comments on commit c24f796

Please sign in to comment.