Merge pull request #2225 from jesseskinner/patch-1

Fix inconsistency in mockComponent argument name
This commit is contained in:
Paul O’Shannessy
2014-09-22 14:42:38 -07:00
parent d68fb9bd69
commit 4ba83e17f7
+1 -1
View File
@@ -38,7 +38,7 @@ Render a component into a detached DOM node in the document. **This function req
### mockComponent
```javascript
object mockComponent(function componentClass, string? tagName)
object mockComponent(function componentClass, string? mockTagName)
```
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.