Skip to content

Commit

Permalink
Merge pull request #3437 from jugglinmike/quit-code-regression-test
Browse files Browse the repository at this point in the history
[[CHORE]] Add regression test for code from `quit`
  • Loading branch information
rwaldron committed Mar 23, 2020
2 parents f7d3a46 + 380fe6b commit b6c4518
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/core.js
Expand Up @@ -415,7 +415,9 @@ exports.argsInCatchReused = function (test) {
exports.testRawOnError = function (test) {
JSHINT(';', { maxerr: 1 });
test.equal(JSHINT.errors[0].raw, 'Unnecessary semicolon.');
test.equal(JSHINT.errors[0].code, 'W032');
test.equal(JSHINT.errors[1].raw, 'Too many errors.');
test.equal(JSHINT.errors[1].code, 'E043');
test.equal(JSHINT.errors[2], null);

test.done();
Expand Down

0 comments on commit b6c4518

Please sign in to comment.