how to call a function of a component in jest code example
Example: enzyme test method
const wrapper = shallow(<Button />);
wrapper.instance().handleClick()
const wrapper = shallow(<Button />);
wrapper.instance().handleClick()