Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update argument type for .contains to match impl #2540

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/contains.md
Expand Up @@ -6,7 +6,7 @@ It will determine if an element in the wrapper matches the expected element by c

#### Arguments

1. `nodeOrNodes` (`ReactElement|Array<ReactElement>`): The node or array of nodes whose presence you are detecting in the current instance's
1. `nodeOrNodes` (`ReactElement|Array<ReactElement>|string|number`): The node or array of nodes whose presence you are detecting in the current instance's
render tree.


Expand Down
2 changes: 1 addition & 1 deletion docs/api/ShallowWrapper/contains.md
Expand Up @@ -6,7 +6,7 @@ It will determine if an element in the wrapper matches the expected element by c

#### Arguments

1. `nodeOrNodes` (`ReactElement|Array<ReactElement>`): The node or array of nodes whose presence you are detecting in the current instance's
1. `nodeOrNodes` (`ReactElement|Array<ReactElement>|string|number`): The node or array of nodes whose presence you are detecting in the current instance's
render tree.


Expand Down
2 changes: 1 addition & 1 deletion packages/enzyme/src/ReactWrapper.js
Expand Up @@ -419,7 +419,7 @@ class ReactWrapper {
* expect(wrapper.contains(<div className="foo bar" />)).to.equal(true);
* ```
*
* @param {ReactElement|Array<ReactElement>} nodeOrNodes
* @param {ReactElement|Array<ReactElement>|string|number} nodeOrNodes
* @returns {Boolean}
*/
contains(nodeOrNodes) {
Expand Down
2 changes: 1 addition & 1 deletion packages/enzyme/src/ShallowWrapper.js
Expand Up @@ -875,7 +875,7 @@ class ShallowWrapper {
* expect(wrapper.contains(<div className="foo bar" />)).to.equal(true);
* ```
*
* @param {ReactElement|Array<ReactElement>} nodeOrNodes
* @param {ReactElement|Array<ReactElement>|string|number} nodeOrNodes
* @returns {Boolean}
*/
contains(nodeOrNodes) {
Expand Down