title: Test if function is called react and enzyme
body: <p>I am trying to test one of the methods in my react component. It is being called after a button click so I have the simulation in place with enzyme   </p>
  
  <pre><code> it('clone should call handleCloneClick when clicked', () =&gt; {
          const cloneButton = wrapper.find('#clone-btn');
          cloneButton.simulate('click');
   });
  </code></pre>
  
  <p>My component method is here: </p>
  
  <pre><code>_handleCloneClick(event) {
      event.preventDefault();
      event.stopPropagation();
  
      this.props.handleClone(this.props.user.id);
  }
  </code></pre>
  
  <p>The _handleCloneClick is being called when the user clicks on the button thats in the simulation, how can I go about testing that its been called successfully? </p>