Skip to content

Commit

Permalink
docs(core/unittest): fix path of helper.js(#2029) (#2030)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujiulong authored and atian25 committed Jan 25, 2018
1 parent 1e3a4b3 commit b5d823f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/source/en/core/unittest.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ describe('isSuccess()', () => {

Similiar to Service, Helper is avaliable on ctx, which can be tested directly.

Such as `app/helper/format.js`:
Such as `app/extend/helper.js`:

```js
module.exports = {
Expand Down Expand Up @@ -734,4 +734,4 @@ All sample code can be found in [eggjs/exmaples/unittest](https://github.com/egg
[Mocha]: https://mochajs.org
[co-mocha]: https://github.com/blakeembrey/co-mocha
[nyc]: https://github.com/istanbuljs/nyc
[power-assert]: https://github.com/power-assert-js/power-assert
[power-assert]: https://github.com/power-assert-js/power-assert
2 changes: 1 addition & 1 deletion docs/source/zh-cn/core/unittest.md
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ describe('isSuccess()', () => {

Helper 测试方式与 Service 类似,也是通过 ctx 来访问到 Helper,然后调用 Helper 方法测试。

例如 `app/helper/format.js`
例如 `app/extend/helper.js`

```js
module.exports = {
Expand Down

0 comments on commit b5d823f

Please sign in to comment.