Added mocha and tests
This commit is contained in:
martind2000 2016-04-10 11:12:40 +01:00
parent 786f174a9d
commit d7b028a786
4 changed files with 16 additions and 3 deletions

View File

@ -5,6 +5,7 @@
"window",
"-Promise"
],
"node": true,
"browser": true,
"boss": true,
"curly": true,

View File

@ -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 <martind2000@gmail.com>",
"license": "ISC"

8
test/jshint.spec.js Normal file
View File

@ -0,0 +1,8 @@
/**
*
* User: Martin Donnelly
* Date: 2016-03-15
* Time: 13:42
*
*/
require('mocha-jshint')({paths:['lib']});

2
test/mocha.opts Normal file
View File

@ -0,0 +1,2 @@
--slow 200
--growl