Returns the prop value for the node of the current wrapper with the provided key.
NOTE: can only be called on a wrapper of a single node.
key
(String
): The prop name such that this will return value will be thethis.props[key]
of the component instance.
const wrapper = mount(<MyComponent foo={10} />);
expect(wrapper.prop('foo')).to.equal(10);