Skip to content

Commit

Permalink
docs: update argument type for .contains to match impl
Browse files Browse the repository at this point in the history
  • Loading branch information
danmana committed Oct 13, 2021
1 parent c8c74a4 commit 7db06de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 7db06de

Please sign in to comment.