Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestUtils docs: isComponentOfType -> isDescriptorOfType #2038

Merged
merged 1 commit into from
Aug 14, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/docs/09.4-test-utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down