W3cubDocs

/Enzyme

.isEmptyRender() => Boolean

Returns whether or not the wrapper would ultimately render only the allowed falsy values: false or null.

Returns

Boolean: whether the return is falsy

Example

function Foo() {
  return null;
}

const wrapper = mount(<Foo />);
expect(wrapper.isEmptyRender()).to.equal(true);

© 2015 Airbnb, Inc.
Licensed under the MIT License.
https://airbnb.io/enzyme/docs/api/ReactWrapper/isEmptyRender.html