From 0ac897b959d59f83a4485516a1e3d533520090ac Mon Sep 17 00:00:00 2001 From: Marshall Thompson Date: Sun, 17 Jan 2016 19:31:48 -0700 Subject: [PATCH] Appending `nsp check` to test script. This adds a Node Security Project scan to the end of the tests. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index caec21fc05..55c0f4ba3b 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "jshint": "jshint src/. test/. --config", "coverage": "istanbul cover _mocha -- test/ --recursive", "mocha": "mocha test/ --compilers js:babel-core/register --recursive", - "test": "npm run compile && npm run jshint && npm run mocha" + "test": "npm run compile && npm run jshint && npm run mocha && nsp check" }, "engines": { "node": ">= 0.10.0", @@ -65,6 +65,7 @@ "istanbul": "^0.4.0", "jshint": "^2.6.3", "mocha": "^2.2.0", + "nsp": "^2.2.0", "q": "^1.0.1", "request": "^2.x", "socket.io-client": "^1.0.0"