title: React test the Typography Text Enzyme
body: <p>I have a component that has a link on it. I want to test the text value of the link.</p>
  <pre><code>     &lt;Link  onClick={() =&gt; history.push(`/cars/`)}&gt;
         &lt;Typography id= &quot;car-reviews&quot;&gt;{carCount()}&lt;/Typography&gt;
      &lt;/Link&gt;
  </code></pre>
  <p>The test code as follows,</p>
  <pre><code>const wrapper = mount(&lt;AssignedCars /&gt;);
  const displayLabel = wrapper.find({id:'car-reviews'}).first();
  expect(displayLabel.text).toBe('0'); 
  </code></pre>
  <p>But this fails, carCount() is returning 0 but I need to know how to test the text of the Typography object.</p>