Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(quickstart): use app.router #1706

Merged
merged 2 commits into from
Nov 23, 2017
Merged

docs(quickstart): use app.router #1706

merged 2 commits into from
Nov 23, 2017

Conversation

atian25
Copy link
Member

@atian25 atian25 commented Nov 23, 2017

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@codecov-io
Copy link

codecov-io commented Nov 23, 2017

Codecov Report

Merging #1706 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1706   +/-   ##
=======================================
  Coverage   99.58%   99.58%           
=======================================
  Files          29       29           
  Lines         717      717           
=======================================
  Hits          714      714           
  Misses          3        3

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92ef5f9...ffbccf3. Read the comment docs.

@@ -401,8 +403,7 @@ module.exports = SomeService;

```js
// test/app/middleware/robot.test.js
const assert = require('assert');
const mock = require('egg-mock');
const { app, mock, assert } = require('egg-mock/bootstrap');

describe('test/app/middleware/robot.test.js', () => {
let app;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里要去掉 app 了

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其他 +1

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改了

@atian25 atian25 force-pushed the docs-quickstart-router branch from c562737 to d3ee530 Compare November 23, 2017 07:30

describe('test/app/middleware/robot.test.js', () => {
let app;
before(() => {
app = mock.app();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里也不需要了啊,不需要 before 了

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, after 也干掉了

@atian25 atian25 force-pushed the docs-quickstart-router branch from ffbccf3 to b4ef4c1 Compare November 23, 2017 09:27
@dead-horse dead-horse merged commit 1ec1705 into master Nov 23, 2017
@dead-horse dead-horse deleted the docs-quickstart-router branch November 23, 2017 10:01
popomore pushed a commit that referenced this pull request Nov 23, 2017
docs(quickstart): use app.router (#1706)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants