How to test inner functions defined on Stateless Components in React with Enzyme
|Added at||2017-01-05 12:01|
I'm using enzyme to test my react components. I have a stateless component that has an inner function. How can i call and test that inner function?
Here is my component:
I've tried the following, but get an error saying: TypeError: undefined is not a constructor