enzyme test method code example Example: enzyme test method const wrapper = shallow(); wrapper.instance().handleClick()