Skip to content

Commit

Permalink
Merge pull request #850 from chidg/patch-1
Browse files Browse the repository at this point in the history
[docs] Minor improvements to docs around matchesElement
  • Loading branch information
blainekasten authored Mar 15, 2017
2 parents 31c1c10 + f61a86d commit e831c22
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
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
4 changes: 3 additions & 1 deletion docs/api/ShallowWrapper/containsAllMatchingElements.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# `.containsAllMatchingElements(nodes) => Boolean`

Returns whether or not one of the given react elements are all matching one element in the shallow render tree.
It will determine if an element in the wrapper __looks like__ one of the expected element by checking if all props of the expected element are present on the wrappers element and equals to each other.
It will determine if the wrapper contains elements which __look like__ each of the expected elements by checking if all props of each expected element are present on the wrapper's elements and equal to each other. Props present on the wrapper elements but not supplied in the expected elements will be ignored.




#### Arguments
Expand Down
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/containsAnyMatchingElements.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `.containsAnyMatchingElements(nodes) => Boolean`

Returns whether or not one of the given react elements is matching on element in the shallow render tree.
It will determine if an element in the wrapper __looks like__ one of the expected element by checking if all props of the expected element are present on the wrappers element and equals to each other.
It will determine if an element in the wrapper __looks like__ one of the expected elements by checking if all props of the expected element are present on the wrappers element 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
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/containsMatchingElement.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `.containsMatchingElement(node) => Boolean`

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


#### Arguments
Expand Down

0 comments on commit e831c22

Please sign in to comment.