1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-27 22:38:34 +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` 6. `npm run build`
## Test ## Test
ビルドしてから:
`npm test` `npm test`
## Setup ## Setup

View File

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

View File

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