-
- Downloads
implémentation test unitaire
Showing
- __test__/dao.test.js 154 additions, 0 deletions__test__/dao.test.js
- __test__/models.test.js 102 additions, 0 deletions__test__/models.test.js
- db/database.db 0 additions, 0 deletionsdb/database.db
- db/test_database.db 0 additions, 0 deletionsdb/test_database.db
- package-lock.json 472 additions, 0 deletionspackage-lock.json
- package.json 3 additions, 1 deletionpackage.json
- src/models/species.js 2 additions, 1 deletionsrc/models/species.js
- src/routes/auth/authRefresh.js 1 addition, 1 deletionsrc/routes/auth/authRefresh.js
__test__/dao.test.js
0 → 100644
__test__/models.test.js
0 → 100644
No preview for this file type
db/test_database.db
0 → 100644
... | @@ -6,13 +6,14 @@ | ... | @@ -6,13 +6,14 @@ |
"type": "module", | "type": "module", | ||
"scripts": { | "scripts": { | ||
"start": "nodemon index", | "start": "nodemon index", | ||
"test": "echo \"Error: no test specified\" && exit 1" | "test": "mocha" | ||
}, | }, | ||
"author": "V. Henriques", | "author": "V. Henriques", | ||
"license": "ISC", | "license": "ISC", | ||
"dependencies": { | "dependencies": { | ||
"bcrypt": "^5.1.1", | "bcrypt": "^5.1.1", | ||
"better-sqlite3": "^9.2.2", | "better-sqlite3": "^9.2.2", | ||
"chai": "^4.3.10", | |||
"dotenv": "^16.3.1", | "dotenv": "^16.3.1", | ||
"express": "^4.18.2", | "express": "^4.18.2", | ||
"jose": "^5.1.3", | "jose": "^5.1.3", | ||
... | @@ -21,6 +22,7 @@ | ... | @@ -21,6 +22,7 @@ |
"sqlite3": "^5.1.6" | "sqlite3": "^5.1.6" | ||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"mocha": "^10.2.0", | |||
"nodemon": "^2.0.22", | "nodemon": "^2.0.22", | ||
"standard": "^17.0.0" | "standard": "^17.0.0" | ||
} | } | ||
... | ... |
Please register or sign in to comment