Returns whether or not the single wrapped node matches the provided selector. It must be a single-node wrapper.
selector
(EnzymeSelector
): The selector to match.Boolean
: whether or not the wrapped node matches the provided selector.
const wrapper = mount(<div className="some-class other-class" />); expect(wrapper.is('.some-class')).to.equal(true);
© 2015 Airbnb, Inc.
Licensed under the MIT License.
https://airbnb.io/enzyme/docs/api/ReactWrapper/is.html