From 9e366aa489c4f208099134f833f5e428bb5e41ce Mon Sep 17 00:00:00 2001 From: Sai1919 Date: Tue, 8 Nov 2016 18:15:51 +0530 Subject: [PATCH] add jsStandard --- package.json | 5 +++-- test/test.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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) })