Skip to content
Permalink
Browse files
Fix test for exit code 1 on windows (#78)
  • Loading branch information
SamVerschueren authored and sindresorhus committed Mar 22, 2017
1 parent 2892941 commit 4231a1076ab8f435f73b466c07a126eb6987de39
Showing 2 changed files with 2 additions and 1 deletion.
@@ -2,4 +2,4 @@
'use strict';
console.log('stdout');
console.error('stderr');
process.exit(2);
process.exit(1);
@@ -40,6 +40,7 @@ test('include stdout and stderr in errors for improved debugging', async t => {
const err = await t.throws(m('fixtures/error-message.js'));
t.regex(err.message, /stdout/);
t.regex(err.message, /stderr/);
t.is(err.code, 1);
});

test('do not include in errors when `stdio` is set to `inherit`', async t => {

0 comments on commit 4231a10

Please sign in to comment.