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