title: How to simulate click on child element using enzyme and sinon?
body: <p>I am using using enzyme and sinon, I receive this error when trying to use this test case:</p>
  
  <blockquote>
    <p>Expected value to equal:
          true
        Received:
          false</p>
  </blockquote>
  
  <p>In console when using <code>.debug()</code> I see:</p>
  
  <p>Apparently event handler for click is not being called.</p>
  
  <p>I suspect the issue could be related to <code>.simulate('click', onLocationClick)</code>.</p>
  
  <p>Could you please help me out and tell what I am doing wrong here? Thanks.</p>
  
  <pre><code> console.log src\forecast\locationFinder\LocationFinder.test.js:28
        &lt;Location country="CZ" id={3067696} name="Prague" onLocationClick={[Function]} /&gt;
  </code></pre>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  it('should click event', () =&gt; {
      const data = [
        {
          country: 'CZ',
          id: 3067696,
          name: 'Prague'
        },
        {
          country: 'US',
          id: 4548393,
          name: 'Prague'
        }
      ]
      const onLocationClick = sinon.spy()
      const wrapper = shallow(
        &lt;LocationFinder
          locations={data}
          onLocationClick={onLocationClick}
      /&gt;)
      console.log(wrapper.find({ id: 3067696 }).debug())
      wrapper.find({ id: 3067696 }).simulate('click', onLocationClick)
      expect(onLocationClick.called).toEqual(true)
    })</code></pre>
  </div>
  </div>
  </p>