Skip to content
This repository was archived by the owner on Sep 5, 2021. It is now read-only.

Support for multiple contains #23

@albertfdp

Description

@albertfdp

In the following example scenario:

<Parent>
	<Foo>
 		<Item>One</Item>
	</Foo>
	<Foo>
		<Item>Two</Item>
	</Foo>
</Parent>

support doing:

expect(wrapper.find(Parent), 'to contain', [
	<Item>One</Item>,
 	<Item>Two</Item>
]);

https://github.com/airbnb/enzyme/blob/master/docs/api/ReactWrapper/contains.md

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions