enzymejs / chai-enzyme

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

fix contain and containMatchingElement and to accept string values #202

Open brucewpaul opened 7 years ago

brucewpaul commented 7 years ago

before, a string was accepted via react-element-to-jsx-string. As that is no longer being used in favor of a custom function, a string should still be accepted.

brucewpaul commented 7 years ago

this pr address https://github.com/producthunt/chai-enzyme/issues/204

ayrton commented 7 years ago

Looks like this breaks when using enzyme 2 (see travis)