Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabe committed May 19, 2019
1 parent 1fe8725 commit fe4e976
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/docs/addons-test-utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ mockComponent(

> 注意:
>
> `mockComponent()` 是老舊的 API。我們建議使用 [shallow render](/docs/shallow-renderer.html)[`jest.mock()`](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock) 代替
> `mockComponent()` 是 legacy API。我們建議以 [shallow render](/docs/shallow-renderer.html)[`jest.mock()`](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock) 作為替代
* * *

Expand Down Expand Up @@ -221,7 +221,7 @@ scryRenderedDOMComponentsWithClass(
)
```

尋找已 render 的 tree 中 component 的所有 DOM element 裡,class 名稱符合 `className` 的 DOM component。
在已經被 render 的 tree 中尋找所有 DOM element,回傳 class 名稱符合 `className` 的 DOM component。

* * *

Expand All @@ -247,7 +247,7 @@ scryRenderedDOMComponentsWithTag(
)
```

尋找已 render 的 tree 中 component 的所有 DOM element 裡,tag 名稱符合 `tagName` 的 DOM component。
在已經被 render 的 tree 中尋找所有 DOM element,回傳 tag 名稱符合 `tagName` 的 DOM component。

* * *

Expand Down

0 comments on commit fe4e976

Please sign in to comment.