title: testing the async function passed as a prop from parent to child
body: <p>i have a parent component where i have a handleClick which is passed as a prop to the child.</p>
  
  <p>// parent.js</p>
  
  <pre><code>_handleClick = async (buttonName, id) =&gt; {
      if(buttonName === 'yes'){
          ... some logic
      }else{
          ... some logic
      }
  }
  
  &lt;Child 
    handleClick={(buttonName, id) =&gt; this._handleClick(buttonName, id)}
    /&gt;
  </code></pre>
  
  <p>so right now how can  i call the _handleClick and run the test cases. How should i call the method .</p>
  
  <p>I have tried below but didnt worked as expected since its an arrow function and it expects two parameters.</p>
  
  <p>//test.js</p>
  
  <pre><code>const wrapper = shallow(&lt;parent /&gt;)
  expect(wrapper.find('Child').length).toEqual(1)
  wrapper.find('Child').prop('handleClick')
  </code></pre>