Update 10.4-test-utils.md (#6971)
The find/scry methods which returns DOM component in react@0.13 now returns DOMElement in react@0.14 and later.
Qin Junwen committed
Jun 15, 2016 at 02:09 UTC
a394ed6a6c67768e04f957d29c9767da4e9d3278
1 file changed
+4
-4
docs/docs/10.4-test-utils.md
+4
-4
@@ -147,12 +147,12 @@ array scryRenderedDOMComponentsWithClass(
147
)
148
```
149
150
-Finds all instances of components in the rendered tree that are DOM components with the class name matching `className`.
150
+Finds all DOM elements of components in the rendered tree that are DOM components with the class name matching `className`.
151
152
### findRenderedDOMComponentWithClass
153
154
```javascript
155
-ReactComponent findRenderedDOMComponentWithClass(
155
+DOMElement findRenderedDOMComponentWithClass(
156
ReactComponent tree,
157
string className
158
)
@@ -169,12 +169,12 @@ array scryRenderedDOMComponentsWithTag(
169
)
170
```
171
172
-Finds all instances of components in the rendered tree that are DOM components with the tag name matching `tagName`.
172
+Finds all DOM elements of components in the rendered tree that are DOM components with the tag name matching `tagName`.
173
174
### findRenderedDOMComponentWithTag
175
176
```javascript
177
-ReactComponent findRenderedDOMComponentWithTag(
177
+DOMElement findRenderedDOMComponentWithTag(
178
ReactComponent tree,
179
string tagName
180
)