enzymejs / chai-enzyme

Chai.js assertions and convenience functions for testing React Components with enzyme
MIT License
787 stars 72 forks source link

Support an array of nodes in `contain` #194

Closed rylanc closed 7 years ago

rylanc commented 7 years ago

The enzyme contains assertion accepts a node or an array of nodes as an argument. The current use of react-element-to-jsx-string prevents this from working in chai-enzyme. This PR allows the passing of an array of nodes and updates the documentation.

ayrton commented 7 years ago

LGTM

rylanc commented 7 years ago

Can this be merged?

ljharb commented 7 years ago

LGTM?