Skip to content

Commit

Permalink
fix uncaught/strict test
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <[email protected]>
  • Loading branch information
boneskull committed Oct 30, 2020
1 parent 562b94a commit 2b38221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/uncaught.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe('uncaught exceptions', function() {
});

describe('when Node is in "strict" mode', function() {
it('should fail', async function() {
it('should fail with an uncaught exception', async function() {
const [, promise] = invokeMochaAsync(
[
resolveFixturePath('uncaught/unhandled'),
Expand All @@ -210,7 +210,7 @@ describe('uncaught exceptions', function() {
promise,
'when fulfilled',
'to have failed with output',
/'ERR_UNHANDLED_REJECTION'/
/Uncaught Error: yikes/
);
});
});
Expand Down

0 comments on commit 2b38221

Please sign in to comment.