Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 405 Bytes

getNode.md

File metadata and controls

32 lines (19 loc) · 405 Bytes

.getNode() => ReactElement

Returns the wrapper's underlying node.

Returns

ReactElement: The retrieved node.

Examples

function Test() {
  return (
    <div>
      <span />
      <span />
    </div>
  );
}

const wrapper = mount(<Test />);
expect(wrapper.getNode()).to.be.an.instanceof(Test);

Related Methods