Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 337 Bytes

isEmptyRender.md

File metadata and controls

18 lines (12 loc) · 337 Bytes

.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);