Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
test: make events-uncaught-exception-stack engine-agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhorton committed Mar 8, 2018
1 parent 3ae2dfc commit 2d7142c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-events-uncaught-exception-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ process.on('uncaughtException', common.mustCall((err) => {
const lines = err.stack.split('\n');
assert.strictEqual(lines[0], 'Error');
lines.slice(1).forEach((line) => {
assert(/^ at/.test(line), `${line} has an unexpected format`);
assert(/^\s*at/.test(line), `${line} has an unexpected format`);
});
}));

Expand Down

0 comments on commit 2d7142c

Please sign in to comment.