@samitouri / QOS-React-2 / commits / 3109082144

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.

Jesse Skinner committed Sep 21, 2014 at 23:00 UTC 31090821446d0eb425bbddd7901c1040a4ceb3a1
1 file changed +1 -1
docs/docs/09.4-test-utils.md
+1 -1
@@ -38,7 +38,7 @@ Render a component into a detached DOM node in the document. **This function req
38 ### mockComponent
39
40 ```javascript
41 -object mockComponent(function componentClass, string? tagName)
41 +object mockComponent(function componentClass, string? mockTagName)
42 ```
43
44 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.