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

TestUtils docs: isComponentOfType -> isDescriptorOfType

Fixes #1946

Paul O’Shannessy committed Aug 13, 2014 at 19:23 UTC aa959dcb974ffde58e807d8fb045f44edce23fcf
1 file changed +3 -3
docs/docs/09.4-test-utils.md
+3 -3
@@ -43,13 +43,13 @@ object mockComponent(function componentClass, string? tagName)
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.
45
46 -### isComponentOfType
46 +### isDescriptorOfType
47
48 ```javascript
49 -boolean isComponentOfType(ReactComponent instance, function componentClass)
49 +boolean isDescriptorOfType(ReactDescriptor descriptor, function componentClass)
50 ```
51
52 -Returns true if `instance` is an instance of a React `componentClass`.
52 +Returns true if `descriptor` is an instance of a React `componentClass`.
53
54 ### isDOMComponent
55