Skip to content

Commit 4ba83e1

Browse files
committed
Merge pull request facebook#2225 from jesseskinner/patch-1
Fix inconsistency in mockComponent argument name
1 parent d68fb9b commit 4ba83e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/09.4-test-utils.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Render a component into a detached DOM node in the document. **This function req
3838
### mockComponent
3939

4040
```javascript
41-
object mockComponent(function componentClass, string? tagName)
41+
object mockComponent(function componentClass, string? mockTagName)
4242
```
4343

4444
Pass a mocked component module to this method to augment it with useful methods that allow it to be used as a dummy React component. Instead of rendering as usual, the component will become a simple `<div>` (or other tag if `mockTagName` is provided) containing any provided children.

0 commit comments

Comments
 (0)