TestUtils docs: isComponentOfType -> isDescriptorOfType

Fixes #1946
This commit is contained in:
Paul O’Shannessy
2014-08-13 19:23:47 -07:00
parent 5df9b90c3d
commit aa959dcb97

View File

@@ -43,13 +43,13 @@ object mockComponent(function componentClass, string? tagName)
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.
### isComponentOfType
### isDescriptorOfType
```javascript
boolean isComponentOfType(ReactComponent instance, function componentClass)
boolean isDescriptorOfType(ReactDescriptor descriptor, function componentClass)
```
Returns true if `instance` is an instance of a React `componentClass`.
Returns true if `descriptor` is an instance of a React `componentClass`.
### isDOMComponent