-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
Codecov Report
@@ 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.
|
@@ -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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里要去掉 app 了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其他 +1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改了
c562737
to
d3ee530
Compare
docs/source/en/intro/quickstart.md
Outdated
|
||
describe('test/app/middleware/robot.test.js', () => { | ||
let app; | ||
before(() => { | ||
app = mock.app(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里也不需要了啊,不需要 before 了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, after 也干掉了
ffbccf3
to
b4ef4c1
Compare
docs(quickstart): use app.router (#1706)
Checklist
npm test
passesAffected core subsystem(s)
Description of change