add testing framewrok
This diff is collapsed.
| ... | @@ -4,8 +4,8 @@ | ... | @@ -4,8 +4,8 @@ |
| "description": "", | "description": "", | ||
| "main": "index.js", | "main": "index.js", | ||
| "scripts": { | "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1", | "start": "node app.js", | ||
| "start": "node app.js" | "test": "mocha" | ||
| }, | }, | ||
| "repository": { | "repository": { | ||
| "type": "git", | "type": "git", | ||
| ... | @@ -22,5 +22,10 @@ | ... | @@ -22,5 +22,10 @@ |
| "express": "^4.17.1", | "express": "^4.17.1", | ||
| "express-validator": "^6.4.0", | "express-validator": "^6.4.0", | ||
| "pug": "^2.0.4" | "pug": "^2.0.4" | ||
| }, | |||
| "devDependencies": { | |||
| "chai": "^4.3.4", | |||
| "chai-http": "^4.3.0", | |||
| "mocha": "^9.0.2" | |||
| } | } | ||
| } | } | ||
| \ No newline at end of file |
test/jsonStorage.js
0 → 100644
Please register or sign in to comment