Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 395 Bytes

props.md

File metadata and controls

21 lines (12 loc) · 395 Bytes

.props() => Object

Returns the props hash for the current node of the wrapper.

NOTE: can only be called on a wrapper of a single node.

Example

const wrapper = mount(<MyComponent foo={10} />);
expect(wrapper.props().foo).to.equal(10);

Related Methods