diff --git a/package.json b/package.json index 140795d..084de21 100644 --- a/package.json +++ b/package.json @@ -27,12 +27,13 @@ }, "devDependencies": { "mocha": "3.1.2", - "should": "11.1.1" + "should": "11.1.1", + "standard": "8.5.0" }, "optionalDependencies": {}, "main": "./parser", "scripts": { - "test": "mocha" + "test": "mocha && standard" }, "maintainers": [ { diff --git a/test/test.js b/test/test.js index 4aee4f4..3e74caa 100644 --- a/test/test.js +++ b/test/test.js @@ -25,6 +25,7 @@ describe('Tests', function () { }) parser.on('error', function (err) { + should(err).not.be.ok() done(err) })