Skip to content

Commit

Permalink
[Docs] mount/shallow: fix pluralization of “exist”
Browse files Browse the repository at this point in the history
  • Loading branch information
mvasin authored and ljharb committed Oct 16, 2019
1 parent 9e26937 commit 9a6e078
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/api/mount.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ Remove nodes in the current wrapper that do not return true for the provided pre
Removes nodes that are not host nodes; e.g., this will only return HTML nodes.

#### [`.contains(nodeOrNodes) => Boolean`](ReactWrapper/contains.md)
Returns whether or not a given node or array of nodes is somewhere in the render tree.
Returns whether or not a given node or array of nodes exists in the render tree.

#### [`.containsMatchingElement(node) => Boolean`](ReactWrapper/containsMatchingElement.md)
Returns whether or not a given react element is somewhere in the render tree.
Returns whether or not a given react element exists in the render tree.

#### [`.containsAllMatchingElements(nodes) => Boolean`](ReactWrapper/containsAllMatchingElements.md)
Returns whether or not all the given react elements are somewhere in the render tree.
Returns whether or not all the given react elements exist in the render tree.

#### [`.containsAnyMatchingElements(nodes) => Boolean`](ReactWrapper/containsAnyMatchingElements.md)
Returns whether or not one of the given react elements is somewhere in the render tree.
Returns whether or not one of the given react elements exist in the render tree.

#### [`.equals(node) => Boolean`](ReactWrapper/equals.md)
Returns whether or not the current wrapper root node render tree looks like the one passed in.
Expand Down
2 changes: 1 addition & 1 deletion docs/api/shallow.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Returns whether or not a given node or array of nodes is somewhere in the render
Returns whether or not a given react element exists in the shallow render tree.

#### [`.containsAllMatchingElements(nodes) => Boolean`](ShallowWrapper/containsAllMatchingElements.md)
Returns whether or not all the given react elements exists in the shallow render tree.
Returns whether or not all the given react elements exist in the shallow render tree.

#### [`.containsAnyMatchingElements(nodes) => Boolean`](ShallowWrapper/containsAnyMatchingElements.md)
Returns whether or not one of the given react elements exists in the shallow render tree.
Expand Down
2 changes: 1 addition & 1 deletion packages/enzyme/src/ReactWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ class ReactWrapper {
}

/**
* Whether or not all the given react elements exists in the current render tree.
* Whether or not all the given react elements exist in the current render tree.
* It will determine if one of the wrappers element "looks like" the expected
* element by checking if all props of the expected element are present
* on the wrappers element and equals to each other.
Expand Down
2 changes: 1 addition & 1 deletion packages/enzyme/src/ShallowWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ class ShallowWrapper {
}

/**
* Whether or not all the given react elements exists in the shallow render tree.
* Whether or not all the given react elements exist in the shallow render tree.
* Match is based on the expected element and not on wrappers element.
* It will determine if one of the wrappers element "looks like" the expected
* element by checking if all props of the expected element are present
Expand Down

0 comments on commit 9a6e078

Please sign in to comment.