mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
make test utils format consistent (#6777)
This commit is contained in:
committed by
Jim
parent
614203a77d
commit
a8da98c9da
@@ -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