Invokes a function prop.
propName
(String
): The function prop that is invoked...args
(Any
[optional]): Arguments that is passed to the prop functionThis essentially calls wrapper.prop(propName)(...args).
Any
: Returns the value from the prop function
```jsx class Foo extends React.Component { loadData() { return fetch(); }
render() { return (
© 2015 Airbnb, Inc.
Licensed under the MIT License.
https://airbnb.io/enzyme/docs/api/ShallowWrapper/invoke.html