enzyme test method

JavaScript
const wrapper = shallow(<Button />); 
wrapper.instance().handleClick()
Source

Also in JavaScript: