mirror of
https://gitlab.silvrtree.co.uk/martind2000/md-utils.git
synced 2025-01-25 16:16:16 +00:00
0.0.3
Added mocha and tests
This commit is contained in:
parent
786f174a9d
commit
d7b028a786
@ -5,6 +5,7 @@
|
|||||||
"window",
|
"window",
|
||||||
"-Promise"
|
"-Promise"
|
||||||
],
|
],
|
||||||
|
"node": true,
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"boss": true,
|
"boss": true,
|
||||||
"curly": true,
|
"curly": true,
|
||||||
|
@ -8,11 +8,13 @@
|
|||||||
},
|
},
|
||||||
"main": "lib/md-utils.js",
|
"main": "lib/md-utils.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "mocha --recursive --reporter spec --bail --check-leaks --timeout 3000"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
},
|
"mocha": "^2.4.5",
|
||||||
|
"mocha-jshint": "^2.3.1"
|
||||||
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"author": "Martin Donnelly <martind2000@gmail.com>",
|
"author": "Martin Donnelly <martind2000@gmail.com>",
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
|
8
test/jshint.spec.js
Normal file
8
test/jshint.spec.js
Normal 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
2
test/mocha.opts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
--slow 200
|
||||||
|
--growl
|
Loading…
Reference in New Issue
Block a user