Skip to content

Commit

Permalink
Fix unfinshed sentence in ShallowWrapper.contains() doc
Browse files Browse the repository at this point in the history
  • Loading branch information
themouette committed Jan 17, 2016
1 parent c06ac0a commit cc482ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/api/ShallowWrapper/contains.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ the one passed in.

#### Arguments

1. `node` (`ReactElement`): The node whose presence you are detecting in the current instance's
render tree.
1. `node` (`ReactElement`): The node whose presence you are detecting in the current instance's
render tree.



#### Returns

`Boolean`: whether or not the current wrapper has a node anywhere in it's render tree that looks
`Boolean`: whether or not the current wrapper has a node anywhere in it's render tree that looks
like the one passed in.


Expand All @@ -29,7 +29,7 @@ expect(wrapper.contains(<div className="foo bar" />)).to.equal(true);

#### Common Gotchas

- `.contains()` expects a ReactElement, not a selector (like many other methods). Make sure that
when you are calling it you are calling it with a
- Keep in mind that this method determines equality based on the equality of the node's children as
- `.contains()` expects a ReactElement, not a selector (like many other methods). Make sure that
when you are calling it you are calling it with a ReactElement or a JSX expression.
- Keep in mind that this method determines equality based on the equality of the node's children as
well.

0 comments on commit cc482ef

Please sign in to comment.