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

Latest commit

 

History

History
21 lines (12 loc) · 418 Bytes

File metadata and controls

21 lines (12 loc) · 418 Bytes

.getDOMNode() => DOMComponent

Returns the outer most DOMComponent of the current wrapper.

Notes:

  • can only be called on a wrapper of a single node.
  • will raise if called on a wrapper of a stateless functional component.

Returns

DOMComponent: The retrieved DOM component.

Examples

const wrapper = mount(<MyComponent />);
expect(wrapper.getDOMNode()).to.have.property('className');