Fix inconsistency in mockComponent argument name

The second argument of mockComponent was listed as tagName, but referred to in the description as mockTagName. I changed the first one to mockTagName to be consistent.
This commit is contained in:
Jesse Skinner
2014-09-21 23:00:25 -04:00
parent c4423dce8d
commit 1f1071a8c3

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.