Skip to content

Commit

Permalink
Tolerate a different (also non-zero) exit code from mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Nov 18, 2020
1 parent d33f67c commit 0c276f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/external.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ if (typeof process === 'object') {
'to contain',
'Error: should fail: You have created a promise that was not returned from the it block'
);
expect(err, 'to satisfy', { code: 1 });
expect(err, 'to satisfy', {
code: expect.it('to be greater than', 0)
});
});
});

Expand Down

0 comments on commit 0c276f6

Please sign in to comment.