Skip to content

Commit

Permalink
Update 10.4-test-utils.md (#6971)
Browse files Browse the repository at this point in the history
The find/scry methods which returns DOM component in react@0.13 now returns DOMElement in react@0.14 and later.
(cherry picked from commit a394ed6)
  • Loading branch information
kpaxqin authored and zpao committed Jun 14, 2016
1 parent c4c8004 commit f80da18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docs/10.4-test-utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ array scryRenderedDOMComponentsWithClass(
)
```

Finds all instances of components in the rendered tree that are DOM components with the class name matching `className`.
Finds all DOM elements of components in the rendered tree that are DOM components with the class name matching `className`.

### findRenderedDOMComponentWithClass

```javascript
ReactComponent findRenderedDOMComponentWithClass(
DOMElement findRenderedDOMComponentWithClass(
ReactComponent tree,
string className
)
Expand All @@ -169,12 +169,12 @@ array scryRenderedDOMComponentsWithTag(
)
```

Finds all instances of components in the rendered tree that are DOM components with the tag name matching `tagName`.
Finds all DOM elements of components in the rendered tree that are DOM components with the tag name matching `tagName`.

### findRenderedDOMComponentWithTag

```javascript
ReactComponent findRenderedDOMComponentWithTag(
DOMElement findRenderedDOMComponentWithTag(
ReactComponent tree,
string tagName
)
Expand Down

0 comments on commit f80da18

Please sign in to comment.