.is(selector) => Boolean
Returns whether or not the current node matches a provided selector.
Arguments
selector
(EnzymeSelector
): The selector to match.
Returns
Boolean
: whether or not the current node matches a provided selector.
Example
const wrapper = mount(<div className="some-class other-class" />);
expect(wrapper.is('.some-class')).to.equal(true);