title: Issue with jest and enzyme Expected value to be (using ===):
body: <p>I am having a test case, which falls and error provided is:</p>
  
  <pre><code>Expected value to be (using ===):
        true
      Received:
        false
  </code></pre>
  
  <p>I do not understand why, the component has property with true false, and the result dom should be correct.</p>
  
  <ul>
  <li>What could cause the problem?</li>
  <li>How to see what jest and enzyme  is comparing?</li>
  </ul>
  
  <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>import React from 'react'
  import { shallow } from 'enzyme'
  
  import Location from './Location'
  
  describe('A suite', function () {
    it('should render without throwing an error', function () {
      expect(shallow(
        &lt;Location
          id={3067696}
          name='Prague'
          country='CZ'
        /&gt;).contains(&lt;li&gt;&lt;a&gt;Prague, CZ&lt;/a&gt;&lt;/li&gt;)).toBe(true)
    })
  })</code></pre>
  </div>
  </div>
  </p>
  
  <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>import React from 'react'
  
  const Location = ({ onLocationClick, id, name, country }) =&gt; (
    &lt;li&gt;
      &lt;a onClick={onLocationClick}&gt;{name}, {country}&lt;/a&gt;
    &lt;/li&gt;
  )
  
  export default Location</code></pre>
  </div>
  </div>
  </p>
  
  <p>This test case work instead:</p>
  
  <pre><code>  it('should render to static HTML', function () {
      expect(render(
        &lt;Location
          id={3067696}
          name='Prague'
          country='CZ'
        /&gt;
        ).text()).toEqual('Prague, CZ')
    })
  </code></pre>
  
  <p>When using a debugger I see the tree from enzyme as</p>
  
  <pre><code> &lt;li&gt;
          &lt;a onClick={[undefined]}&gt;
            Prague
            ,
            CZ
          &lt;/a&gt;
        &lt;/li&gt;
  </code></pre>