Skip to content

Commit

Permalink
Update matchesElement.md
Browse files Browse the repository at this point in the history
Updated to make the function more clear. I was looking for this method but had not realised it existed until I dug into the PRs (enzymejs#362)
  • Loading branch information
chidg authored Mar 14, 2017
1 parent 89f0114 commit 09ed620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/matchesElement.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `.matchesElement(node) => Boolean`

Returns whether or not a given react element matches the current render tree.
It will determine if the the wrapper root node __looks like__ the expected element by checking if all props of the expected element are present on the wrapper root node and equals to each other.
It will determine if the the wrapper root node __looks like__ the expected element by checking if all the props supplied in the expected element are present on the wrapper root node and equal to each other. Props present on the wrapper root node but not supplied in the expected element will be ignored.


#### Arguments
Expand Down

0 comments on commit 09ed620

Please sign in to comment.