add unit tests
{ | ||
"name": "HelloWorldNodeApp", | ||
"version": "0.0.1", | ||
"private": true, | ||
"private": true, | ||
"scripts": { | ||
"start": "node app.js" | ||
"start": "node app.js", | ||
"test-unit": "mocha test/unit-test.js --reporter json --reporter-options output=test/unit-test.json | tee test/unit-test.json" | ||
}, | ||
"dependencies": { | ||
"express": "4.17.x", | ||
... | ... | @@ -12,5 +13,10 @@ |
"repository": {}, | ||
"engines": { | ||
"node": "10.x || 12.x" | ||
} | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.2.0", | ||
"mocha": "^7.0.1", | ||
"nyc": "*" | ||
} | ||
} |
test/run-tests.sh
0 → 100755
test/unit-test.js
0 → 100755
utils.js
0 → 100644
Please register or sign in to comment