diff --git a/api/index.js.html b/api/index.js.html
index a887f8e188..9179cf74b7 100644
--- a/api/index.js.html
+++ b/api/index.js.html
@@ -120,7 +120,7 @@ index.js
diff --git a/api/lib_agent.js.html b/api/lib_agent.js.html
index 8aec447e91..9a4c73f73f 100644
--- a/api/lib_agent.js.html
+++ b/api/lib_agent.js.html
@@ -143,7 +143,7 @@ lib/agent.js
diff --git a/api/lib_application.js.html b/api/lib_application.js.html
index 6a960a6ac1..7d2b24f13e 100644
--- a/api/lib_application.js.html
+++ b/api/lib_application.js.html
@@ -300,7 +300,7 @@ lib/application.js
diff --git a/api/lib_core_base_context_class.js.html b/api/lib_core_base_context_class.js.html
index 0b6d61eb35..4ad34473a1 100644
--- a/api/lib_core_base_context_class.js.html
+++ b/api/lib_core_base_context_class.js.html
@@ -81,7 +81,7 @@ lib/core/base_context_class.js
diff --git a/api/lib_core_base_context_logger.js.html b/api/lib_core_base_context_logger.js.html
index e6912070c7..82951c3639 100644
--- a/api/lib_core_base_context_logger.js.html
+++ b/api/lib_core_base_context_logger.js.html
@@ -124,7 +124,7 @@ lib/core/base_context_logger.js
diff --git a/api/lib_core_context_httpclient.js.html b/api/lib_core_context_httpclient.js.html
index f5792d2e26..359ce7e288 100644
--- a/api/lib_core_context_httpclient.js.html
+++ b/api/lib_core_context_httpclient.js.html
@@ -89,7 +89,7 @@ lib/core/context_httpclient.js
diff --git a/api/lib_core_messenger.js.html b/api/lib_core_messenger.js.html
index e875b23411..6e268cf939 100644
--- a/api/lib_core_messenger.js.html
+++ b/api/lib_core_messenger.js.html
@@ -198,7 +198,7 @@ lib/core/messenger.js
diff --git a/api/lib_egg.js.html b/api/lib_egg.js.html
index 8197fb9258..a3ee562576 100644
--- a/api/lib_egg.js.html
+++ b/api/lib_egg.js.html
@@ -468,7 +468,7 @@ lib/egg.js
diff --git a/api/lib_jsdoc_context.jsdoc.html b/api/lib_jsdoc_context.jsdoc.html
index 80a628cd45..bc5e4a47f2 100644
--- a/api/lib_jsdoc_context.jsdoc.html
+++ b/api/lib_jsdoc_context.jsdoc.html
@@ -103,7 +103,7 @@ lib/jsdoc/context.jsdoc
diff --git a/api/lib_jsdoc_request.jsdoc.html b/api/lib_jsdoc_request.jsdoc.html
index 91fffa95d0..7262b65dbf 100644
--- a/api/lib_jsdoc_request.jsdoc.html
+++ b/api/lib_jsdoc_request.jsdoc.html
@@ -109,7 +109,7 @@ lib/jsdoc/request.jsdoc
diff --git a/api/lib_jsdoc_response.jsdoc.html b/api/lib_jsdoc_response.jsdoc.html
index 922ba764ad..340cd66880 100644
--- a/api/lib_jsdoc_response.jsdoc.html
+++ b/api/lib_jsdoc_response.jsdoc.html
@@ -66,7 +66,7 @@ lib/jsdoc/response.jsdoc
diff --git a/api/lib_loader_agent_worker_loader.js.html b/api/lib_loader_agent_worker_loader.js.html
index 75dd42788e..2472184854 100644
--- a/api/lib_loader_agent_worker_loader.js.html
+++ b/api/lib_loader_agent_worker_loader.js.html
@@ -86,7 +86,7 @@ lib/loader/agent_worker_loader.js
diff --git a/api/lib_loader_app_worker_loader.js.html b/api/lib_loader_app_worker_loader.js.html
index b95fb3fc99..03a10cb166 100644
--- a/api/lib_loader_app_worker_loader.js.html
+++ b/api/lib_loader_app_worker_loader.js.html
@@ -107,7 +107,7 @@ lib/loader/app_worker_loader.js
diff --git a/api/node_modules__egg-development@2.0.0@egg-development_agent.js.html b/api/node_modules__egg-development@2.0.0@egg-development_agent.js.html
index e43df97680..0ee7bb97f1 100644
--- a/api/node_modules__egg-development@2.0.0@egg-development_agent.js.html
+++ b/api/node_modules__egg-development@2.0.0@egg-development_agent.js.html
@@ -125,7 +125,7 @@ node_modules/_egg-development@2.0.0@egg-development/agent
diff --git a/api/node_modules__egg-development@2.0.0@egg-development_config_config.default.js.html b/api/node_modules__egg-development@2.0.0@egg-development_config_config.default.js.html
index 19adaade1c..4d58528110 100644
--- a/api/node_modules__egg-development@2.0.0@egg-development_config_config.default.js.html
+++ b/api/node_modules__egg-development@2.0.0@egg-development_config_config.default.js.html
@@ -77,7 +77,7 @@ node_modules/_egg-development@2.0.0@egg-development/confi
diff --git a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html
index 7eed3e0e4b..91e600b813 100644
--- a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html
+++ b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html
@@ -199,7 +199,7 @@ node_modules/_egg-i18n@2.0.0@egg-i18n/app.js
diff --git a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html
index 0e2f087881..d6c7efd9be 100644
--- a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html
+++ b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html
@@ -73,7 +73,7 @@ node_modules/_egg-i18n@2.0.0@egg-i18n/app/extend/context.
diff --git a/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html b/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html
index e84083f6ed..3b54723c0a 100644
--- a/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html
+++ b/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html
@@ -89,7 +89,7 @@ node_modules/_egg-i18n@2.0.0@egg-i18n/config/config.defau
diff --git a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html
index b407d3ecc7..7b21485ade 100644
--- a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html
+++ b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html
@@ -174,7 +174,7 @@ node_modules/_egg-jsonp@2.0.0@egg-jsonp/app/extend/applic
diff --git a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html
index 6ffc688315..48daac863e 100644
--- a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html
+++ b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html
@@ -95,7 +95,7 @@ node_modules/_egg-jsonp@2.0.0@egg-jsonp/app/extend/contex
diff --git a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html
index fb62fd26af..a89170f310 100644
--- a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html
+++ b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html
@@ -77,7 +77,7 @@ node_modules/_egg-jsonp@2.0.0@egg-jsonp/config/config.def
diff --git a/api/node_modules__egg-logrotator@3.0.0@egg-logrotator_config_config.default.js.html b/api/node_modules__egg-logrotator@3.0.0@egg-logrotator_config_config.default.js.html
index 693f764b64..9be14d596e 100644
--- a/api/node_modules__egg-logrotator@3.0.0@egg-logrotator_config_config.default.js.html
+++ b/api/node_modules__egg-logrotator@3.0.0@egg-logrotator_config_config.default.js.html
@@ -86,7 +86,7 @@ node_modules/_egg-logrotator@3.0.0@egg-logrotator/config/
diff --git a/api/node_modules__egg-multipart@2.0.0@egg-multipart_app_extend_context.js.html b/api/node_modules__egg-multipart@2.0.0@egg-multipart_app_extend_context.js.html
index d83ac4fc12..2144954fea 100644
--- a/api/node_modules__egg-multipart@2.0.0@egg-multipart_app_extend_context.js.html
+++ b/api/node_modules__egg-multipart@2.0.0@egg-multipart_app_extend_context.js.html
@@ -122,7 +122,7 @@ node_modules/_egg-multipart@2.0.0@egg-multipart/app/exten
diff --git a/api/node_modules__egg-multipart@2.0.0@egg-multipart_config_config.default.js.html b/api/node_modules__egg-multipart@2.0.0@egg-multipart_config_config.default.js.html
index 25082c86a3..fcccefb5c4 100644
--- a/api/node_modules__egg-multipart@2.0.0@egg-multipart_config_config.default.js.html
+++ b/api/node_modules__egg-multipart@2.0.0@egg-multipart_config_config.default.js.html
@@ -88,7 +88,7 @@ node_modules/_egg-multipart@2.0.0@egg-multipart/config/co
diff --git a/api/node_modules__egg-schedule@3.1.1@egg-schedule_app_extend_agent.js.html b/api/node_modules__egg-schedule@3.1.1@egg-schedule_app_extend_agent.js.html
index ffcb4740d3..6212c614cd 100644
--- a/api/node_modules__egg-schedule@3.1.1@egg-schedule_app_extend_agent.js.html
+++ b/api/node_modules__egg-schedule@3.1.1@egg-schedule_app_extend_agent.js.html
@@ -102,7 +102,7 @@ node_modules/_egg-schedule@3.1.1@egg-schedule/app/extend/
diff --git a/api/node_modules__egg-security@2.0.0@egg-security_app_extend_context.js.html b/api/node_modules__egg-security@2.0.0@egg-security_app_extend_context.js.html
index 40d2b3f8ab..48c910ebbb 100644
--- a/api/node_modules__egg-security@2.0.0@egg-security_app_extend_context.js.html
+++ b/api/node_modules__egg-security@2.0.0@egg-security_app_extend_context.js.html
@@ -218,7 +218,7 @@ node_modules/_egg-security@2.0.0@egg-security/app/extend/
diff --git a/api/node_modules__egg-security@2.0.0@egg-security_config_config.default.js.html b/api/node_modules__egg-security@2.0.0@egg-security_config_config.default.js.html
index 9ae99b8e6c..44fa3c66f7 100644
--- a/api/node_modules__egg-security@2.0.0@egg-security_config_config.default.js.html
+++ b/api/node_modules__egg-security@2.0.0@egg-security_config_config.default.js.html
@@ -146,7 +146,7 @@ node_modules/_egg-security@2.0.0@egg-security/config/conf
diff --git a/api/node_modules__egg-session@3.0.0@egg-session_app_extend_application.js.html b/api/node_modules__egg-session@3.0.0@egg-session_app_extend_application.js.html
index 1ebff9f65c..e91d905a8e 100644
--- a/api/node_modules__egg-session@3.0.0@egg-session_app_extend_application.js.html
+++ b/api/node_modules__egg-session@3.0.0@egg-session_app_extend_application.js.html
@@ -116,7 +116,7 @@ node_modules/_egg-session@3.0.0@egg-session/app/extend/ap
diff --git a/api/node_modules__egg-static@2.0.0@egg-static_config_config.default.js.html b/api/node_modules__egg-static@2.0.0@egg-static_config_config.default.js.html
index 6f4ae6eb1b..d091bdafc4 100644
--- a/api/node_modules__egg-static@2.0.0@egg-static_config_config.default.js.html
+++ b/api/node_modules__egg-static@2.0.0@egg-static_config_config.default.js.html
@@ -88,7 +88,7 @@ node_modules/_egg-static@2.0.0@egg-static/config/config.d
diff --git a/api/node_modules__egg-view@2.0.0@egg-view_app_extend_application.js.html b/api/node_modules__egg-view@2.0.0@egg-view_app_extend_application.js.html
index 9243c8d4b6..5dd7a18abf 100644
--- a/api/node_modules__egg-view@2.0.0@egg-view_app_extend_application.js.html
+++ b/api/node_modules__egg-view@2.0.0@egg-view_app_extend_application.js.html
@@ -78,7 +78,7 @@ node_modules/_egg-view@2.0.0@egg-view/app/extend/applicat
diff --git a/api/node_modules__egg-view@2.0.0@egg-view_app_extend_context.js.html b/api/node_modules__egg-view@2.0.0@egg-view_app_extend_context.js.html
index 5051f57ebe..708062bc70 100644
--- a/api/node_modules__egg-view@2.0.0@egg-view_app_extend_context.js.html
+++ b/api/node_modules__egg-view@2.0.0@egg-view_app_extend_context.js.html
@@ -107,7 +107,7 @@ node_modules/_egg-view@2.0.0@egg-view/app/extend/context.
diff --git a/api/node_modules__egg-view@2.0.0@egg-view_config_config.default.js.html b/api/node_modules__egg-view@2.0.0@egg-view_config_config.default.js.html
index ebb50870a6..fe65e5bbe6 100644
--- a/api/node_modules__egg-view@2.0.0@egg-view_config_config.default.js.html
+++ b/api/node_modules__egg-view@2.0.0@egg-view_config_config.default.js.html
@@ -83,7 +83,7 @@ node_modules/_egg-view@2.0.0@egg-view/config/config.defau
diff --git a/api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html b/api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html
index 46e9408477..5e5e8bdf64 100644
--- a/api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html
+++ b/api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html
@@ -77,7 +77,7 @@ node_modules/_egg-watcher@3.0.0@egg-watcher/config/config
diff --git a/api/node_modules_egg-core_lib_egg.js.html b/api/node_modules_egg-core_lib_egg.js.html
index cd9ffa90ad..4a49cbd6a2 100644
--- a/api/node_modules_egg-core_lib_egg.js.html
+++ b/api/node_modules_egg-core_lib_egg.js.html
@@ -429,7 +429,7 @@ node_modules/egg-core/lib/egg.js
diff --git a/api/node_modules_egg-core_lib_loader_context_loader.js.html b/api/node_modules_egg-core_lib_loader_context_loader.js.html
index 7e662116ec..99ad38c093 100644
--- a/api/node_modules_egg-core_lib_loader_context_loader.js.html
+++ b/api/node_modules_egg-core_lib_loader_context_loader.js.html
@@ -166,7 +166,7 @@ node_modules/egg-core/lib/loader/context_loader.js
diff --git a/api/node_modules_egg-core_lib_loader_egg_loader.js.html b/api/node_modules_egg-core_lib_loader_egg_loader.js.html
index 4d2cb2d209..29d42cecbf 100644
--- a/api/node_modules_egg-core_lib_loader_egg_loader.js.html
+++ b/api/node_modules_egg-core_lib_loader_egg_loader.js.html
@@ -483,7 +483,7 @@ node_modules/egg-core/lib/loader/egg_loader.js
diff --git a/api/node_modules_egg-core_lib_loader_file_loader.js.html b/api/node_modules_egg-core_lib_loader_file_loader.js.html
index 29d20d62da..69e9e3e416 100644
--- a/api/node_modules_egg-core_lib_loader_file_loader.js.html
+++ b/api/node_modules_egg-core_lib_loader_file_loader.js.html
@@ -312,7 +312,7 @@ node_modules/egg-core/lib/loader/file_loader.js
diff --git a/api/node_modules_egg-core_lib_loader_mixin_config.js.html b/api/node_modules_egg-core_lib_loader_mixin_config.js.html
index 887216d05f..49d9d69847 100644
--- a/api/node_modules_egg-core_lib_loader_mixin_config.js.html
+++ b/api/node_modules_egg-core_lib_loader_mixin_config.js.html
@@ -171,7 +171,7 @@ node_modules/egg-core/lib/loader/mixin/config.js
diff --git a/api/node_modules_egg-core_lib_loader_mixin_controller.js.html b/api/node_modules_egg-core_lib_loader_mixin_controller.js.html
index 0a5a74bb76..cdf52eaf9f 100644
--- a/api/node_modules_egg-core_lib_loader_mixin_controller.js.html
+++ b/api/node_modules_egg-core_lib_loader_mixin_controller.js.html
@@ -177,7 +177,7 @@ node_modules/egg-core/lib/loader/mixin/controller.js
diff --git a/api/node_modules_egg-core_lib_loader_mixin_custom.js.html b/api/node_modules_egg-core_lib_loader_mixin_custom.js.html
index 62f03b497e..f542a26b74 100644
--- a/api/node_modules_egg-core_lib_loader_mixin_custom.js.html
+++ b/api/node_modules_egg-core_lib_loader_mixin_custom.js.html
@@ -97,7 +97,7 @@ node_modules/egg-core/lib/loader/mixin/custom.js
diff --git a/api/node_modules_egg-core_lib_loader_mixin_extend.js.html b/api/node_modules_egg-core_lib_loader_mixin_extend.js.html
index b15f4b7511..9392fab7b1 100644
--- a/api/node_modules_egg-core_lib_loader_mixin_extend.js.html
+++ b/api/node_modules_egg-core_lib_loader_mixin_extend.js.html
@@ -211,7 +211,7 @@ node_modules/egg-core/lib/loader/mixin/extend.js
diff --git a/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html b/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html
index e34a543c08..eec79769bd 100644
--- a/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html
+++ b/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html
@@ -170,7 +170,7 @@ node_modules/egg-core/lib/loader/mixin/middleware.js
diff --git a/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html b/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html
index 15c5687a96..9d9d196c4b 100644
--- a/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html
+++ b/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html
@@ -446,7 +446,7 @@ node_modules/egg-core/lib/loader/mixin/plugin.js
diff --git a/api/node_modules_egg-core_lib_loader_mixin_router.js.html b/api/node_modules_egg-core_lib_loader_mixin_router.js.html
index e7b94129f5..5c4a6a046c 100644
--- a/api/node_modules_egg-core_lib_loader_mixin_router.js.html
+++ b/api/node_modules_egg-core_lib_loader_mixin_router.js.html
@@ -78,7 +78,7 @@ node_modules/egg-core/lib/loader/mixin/router.js
diff --git a/api/node_modules_egg-core_lib_loader_mixin_service.js.html b/api/node_modules_egg-core_lib_loader_mixin_service.js.html
index cc2679f44d..5016874b0d 100644
--- a/api/node_modules_egg-core_lib_loader_mixin_service.js.html
+++ b/api/node_modules_egg-core_lib_loader_mixin_service.js.html
@@ -86,7 +86,7 @@ node_modules/egg-core/lib/loader/mixin/service.js
diff --git a/api/node_modules_egg-core_lib_utils_base_context_class.js.html b/api/node_modules_egg-core_lib_utils_base_context_class.js.html
index 969eb0fd03..b26694ed74 100644
--- a/api/node_modules_egg-core_lib_utils_base_context_class.js.html
+++ b/api/node_modules_egg-core_lib_utils_base_context_class.js.html
@@ -100,7 +100,7 @@ node_modules/egg-core/lib/utils/base_context_class.js
diff --git a/api/node_modules_egg-core_lib_utils_index.js.html b/api/node_modules_egg-core_lib_utils_index.js.html
index 08f13dd501..1fc02082be 100644
--- a/api/node_modules_egg-core_lib_utils_index.js.html
+++ b/api/node_modules_egg-core_lib_utils_index.js.html
@@ -155,7 +155,7 @@ node_modules/egg-core/lib/utils/index.js
diff --git a/api/node_modules_egg-core_lib_utils_router.js.html b/api/node_modules_egg-core_lib_utils_router.js.html
index b670de8f35..db77106664 100644
--- a/api/node_modules_egg-core_lib_utils_router.js.html
+++ b/api/node_modules_egg-core_lib_utils_router.js.html
@@ -383,7 +383,7 @@ node_modules/egg-core/lib/utils/router.js
diff --git a/en/intro/quickstart.html b/en/intro/quickstart.html
index d97bd363e7..ad5884beda 100644
--- a/en/intro/quickstart.html
+++ b/en/intro/quickstart.html
@@ -79,7 +79,7 @@ controller and router.
const Controller = require('egg').Controller;
class HomeController extends Controller { async index() { this.ctx.body = 'Hello world'; } }
module.exports = HomeController;
|
Then edit the router file and add a mapping.
- module.exports = app => { app.get('/', app.controller.home.index); };
|
+ module.exports = app => { const { router, controller } = app; router.get('/', controller.home.index); };
|
Then add a configuration file:
exports.keys = <YOUR_SECURITY_COOKE_KEYS>;
|
The project directory looks like this:
@@ -118,7 +118,7 @@
<html> <head> <title>Egg HackerNews Clone</title> <link rel="stylesheet" href="/public/css/news.css" /> </head> <body> <div class="news-view view"> {% for item in list %} <div class="item"> <a href="{{ item.url }}">{{ item.title }}</a> </div> {% endfor %} </div> </body> </html>
|
Then add a controller and router.
- const Controller = require('egg').Controller;
class NewsController extends Controller { async list() { const dataList = { list: [ { id: 1, title: 'this is news 1', url: '/news/1' }, { id: 2, title: 'this is news 2', url: '/news/2' } ] }; await this.ctx.render('news/list.tpl', dataList); } }
module.exports = NewsController;
module.exports = app => { app.get('/', app.controller.home.index); app.get('/news', app.controller.news.list); };
|
+ const Controller = require('egg').Controller;
class NewsController extends Controller { async list() { const dataList = { list: [ { id: 1, title: 'this is news 1', url: '/news/1' }, { id: 2, title: 'this is news 2', url: '/news/2' } ] }; await this.ctx.render('news/list.tpl', dataList); } }
module.exports = NewsController;
module.exports = app => { const { router, controller } = app; router.get('/', controller.home.index); router.get('/news', controller.news.list); };
|
Open a browser window and navigate to http://localhost:7001/news.
You should be able to see the rendered page.
Tip:In development, Egg enables the development plug-in by default, which reloads your worker process when changes are made to your back-end code.
@@ -168,9 +168,9 @@ # Add Unit Testing
Unit Testing is very important, and Egg also provide egg-bin to help you write tests painless.
All the test files should place at {app_root}/test/**/*.test.js
.
- const assert = require('assert'); const mock = require('egg-mock');
describe('test/app/middleware/robot.test.js', () => { let app; before(() => { app = mock.app(); return app.ready(); });
afterEach(mock.restore);
it('should block robot', () => { return app.httpRequest() .get('/') .set('User-Agent', "Baiduspider") .expect(403); });
});
|
+ const { app, mock, assert } = require('egg-mock/bootstrap');
describe('test/app/middleware/robot.test.js', () => { it('should block robot', () => { return app.httpRequest() .get('/') .set('User-Agent', "Baiduspider") .expect(403); }); });
|
Then add npm scripts
.
-{ "scripts": { "test": "egg-bin test" } }
|
+{ "scripts": { "test": "egg-bin test", "cov": "egg-bin cov" } }
|
Also install dependencies.
$ npm i egg-mock --save-dev
|
Run it.
diff --git a/zh-cn/intro/quickstart.html b/zh-cn/intro/quickstart.html
index 4e50750679..4ecbf9a164 100644
--- a/zh-cn/intro/quickstart.html
+++ b/zh-cn/intro/quickstart.html
@@ -73,7 +73,7 @@