title: Enzyme fails to recognize date
body: <p>I've got a table, that get's rendered right after the data fetching from API. One of the properties is a ISO date String, which I parse to <code>.localeDateString()</code>.</p>
  <p>I assert in tests that my component been given appropriate date String like:</p>
  <pre><code>...
  await waitFor(() =&gt; {
      dashboard.update()
      expect(dashboard.containsMatchingElement(
                  &lt;Table merchants={[
                      {
                          &quot;userId&quot;: &quot;userId&quot;,
                          &quot;createdAt&quot;: &quot;9.03.2021, 13:58:30&quot;
                      }
                  ]}/&gt;
  </code></pre>
  <p>and it returns false. If I don't map the date to LocaleString it works just fine.</p>
  <p>My mapping function looks like this:</p>
  <pre><code> useEffect(() =&gt; {
          getMerchants()
              .then(response =&gt; {
                  setMerchants(mapToMerchants(response))
  
  ...
  
  const mapToMerchants = (response: any) =&gt; {
          return response.merchants.map((merchant: Merchant) =&gt;
              (new Merchant(merchant.userId, formatDate(merchant.createdAt)))
          );
      }
  
  ...
  
  export const formatDate = (date: string | undefined): string =&gt; {
      if (isInvalidDate(date)) return new Date(0).toLocaleString('pl-PL')
      return new Date(date!!).toLocaleString('pl-PL')
  }
  
  ...
  
  let [merchants, setMerchants] = useState&lt;Merchant[]&gt;([])
  </code></pre>
  <p>I've tried to put dashboard.debug() to see the real value of the <code>createdAt</code> and it is the same as in the tests. Do you have any ideas what can go wrong?</p>