Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 335 Bytes

isEmptyRender.md

File metadata and controls

18 lines (12 loc) · 335 Bytes

.isEmptyRender() => Boolean

Returns whether or not the current component returns one of the allowed falsy values: false or null.

Returns

Boolean: whether the return is falsy

Example

function Foo() {
  return null;
}

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