Skip to content

Commit

Permalink
tweak error_code test to accept ParseError
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Aug 2, 2012
1 parent 2892b9f commit 286cd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/error_code.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ test('error code', function (t) {

ps.on('exit', function (code) {
t.notEqual(code, 0);
t.ok(/^SyntaxError:/m.test(err));
t.ok(/^(Syntax|Parse)Error:/m.test(err));
});
});

0 comments on commit 286cd92

Please sign in to comment.