diff --git a/.jshintrc b/.jshintrc index 2f30d16..2b1a371 100644 --- a/.jshintrc +++ b/.jshintrc @@ -5,6 +5,7 @@ "window", "-Promise" ], + "node": true, "browser": true, "boss": true, "curly": true, diff --git a/package.json b/package.json index 8cd93c0..906b2be 100644 --- a/package.json +++ b/package.json @@ -8,11 +8,13 @@ }, "main": "lib/md-utils.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, + "test": "mocha --recursive --reporter spec --bail --check-leaks --timeout 3000" + }, "dependencies": {}, "devDependencies": { - }, + "mocha": "^2.4.5", + "mocha-jshint": "^2.3.1" + }, "private": true, "author": "Martin Donnelly ", "license": "ISC" diff --git a/test/jshint.spec.js b/test/jshint.spec.js new file mode 100644 index 0000000..3d1ed67 --- /dev/null +++ b/test/jshint.spec.js @@ -0,0 +1,8 @@ +/** + * + * User: Martin Donnelly + * Date: 2016-03-15 + * Time: 13:42 + * + */ +require('mocha-jshint')({paths:['lib']}); diff --git a/test/mocha.opts b/test/mocha.opts new file mode 100644 index 0000000..9c82503 --- /dev/null +++ b/test/mocha.opts @@ -0,0 +1,2 @@ +--slow 200 +--growl