Skip to content

Commit

Permalink
document equals() ignoring undefined props
Browse files Browse the repository at this point in the history
  • Loading branch information
vdemedes committed Nov 12, 2016
1 parent 6c4801d commit 41b0c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/equals.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ expect(wrapper.equals(<div className="foo bar" />)).to.equal(true);
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.

- Following React's behavior, `.equals()` ignores properties whose values are `undefined`.

0 comments on commit 41b0c8a

Please sign in to comment.