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.
The enzyme
contains
assertion accepts a node or an array of nodes as an argument. The current use ofreact-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.