Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/contains.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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