mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
make test utils format consistent (#6777)
(cherry picked from commit 207fe0b478)
This commit is contained in:
committed by
Paul O’Shannessy
parent
668dd47700
commit
b4c1356d18
@@ -142,7 +142,8 @@ Traverse all components in `tree` and accumulate all components where `test(comp
|
||||
|
||||
```javascript
|
||||
array scryRenderedDOMComponentsWithClass(
|
||||
ReactComponent tree, string className
|
||||
ReactComponent tree,
|
||||
string className
|
||||
)
|
||||
```
|
||||
|
||||
@@ -196,7 +197,8 @@ Finds all instances of components with type equal to `componentClass`.
|
||||
|
||||
```javascript
|
||||
ReactComponent findRenderedComponentWithType(
|
||||
ReactComponent tree, function componentClass
|
||||
ReactComponent tree,
|
||||
function componentClass
|
||||
)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user