Deprecated: Use .exists()
instead.
Returns whether or not the wrapper is empty.
Boolean
: whether or not the wrapper is empty.
const wrapper = shallow(<div className="some-class" />);
expect(wrapper.find('.other-class').isEmpty()).to.equal(true);
Deprecated: Use .exists()
instead.
Returns whether or not the wrapper is empty.
Boolean
: whether or not the wrapper is empty.
const wrapper = shallow(<div className="some-class" />);
expect(wrapper.find('.other-class').isEmpty()).to.equal(true);