Skip to content

Commit

Permalink
Merge pull request facebook#2038 from zpao/update-testutil-docs
Browse files Browse the repository at this point in the history
TestUtils docs: isComponentOfType -> isDescriptorOfType
  • Loading branch information
sophiebits committed Aug 14, 2014
2 parents 5df9b90 + aa959dc commit 5ca9e19
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 5ca9e19

Please sign in to comment.