1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-23 22:56:53 +09:00

[WIP] API testing

This commit is contained in:
syuilo 2017-01-17 07:51:27 +09:00
parent c57bb20c2c
commit 0900336232
3 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,7 @@ and more! You can touch with your own eyes at https://misskey.xyz/.
6. `npm run build`
## Test
ビルドしてから:
`npm test`
## Setup

View File

@ -24,6 +24,7 @@
"@types/bcrypt": "1.0.0",
"@types/body-parser": "0.0.33",
"@types/browserify": "12.0.30",
"@types/chai": "3.4.34",
"@types/chalk": "0.4.31",
"@types/compression": "0.0.33",
"@types/cors": "2.8.0",
@ -43,6 +44,7 @@
"@types/is-root": "1.0.0",
"@types/is-url": "1.2.28",
"@types/js-yaml": "3.5.29",
"@types/mocha": "2.2.37",
"@types/mongodb": "2.1.36",
"@types/ms": "0.7.29",
"@types/multer": "0.0.32",
@ -66,6 +68,7 @@
"body-parser": "1.15.2",
"browserify": "13.3.0",
"browserify-livescript": "0.2.3",
"chai": "3.5.0",
"chalk": "1.1.3",
"chart.js": "2.4.0",
"compression": "1.6.2",

View File

@ -54,3 +54,8 @@ server.listen(config.port, () => {
// Send a 'ready' message to parent process
process.send('ready');
});
/**
* Export app for testing
*/
module.exports = app;