Skip to content

Commit

Permalink
fix tests for win and unix
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren committed Dec 26, 2016
1 parent 80bf1a4 commit 1c790d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ test('execa.sync()', t => {
});

test('execa.sync() throws error if written to stderr', t => {
t.throws(() => m.sync('foo'), /'foo' is not recognized as an internal or external command/);
// t.throws(() => m.sync('foo'), process.platform === 'win32' ? /^'foo' is not recognized as an internal or external command/ : 'spawnSync foo ENOENT');
t.throws(() => m.sync('foo'), process.platform === 'win32' ? /'foo' is not recognized as an internal or external command/ : 'spawnSync foo ENOENT');
});

test('execa.shellSync()', t => {
Expand Down

0 comments on commit 1c790d3

Please sign in to comment.