title: Jest + Enzyme: How to test an image src?
body: <p>I have a Logo component:</p>
  
  <pre><code>import React from "react";
  import logo from "assets/images/logo.png";
  
  const Logo = () =&gt; {
    return &lt;img style={{ width: 50 }} src={logo} alt="logo" /&gt;;
  };
  
  export default Logo;
  </code></pre>
  
  <p>Test file:</p>
  
  <pre><code>import React from "react";
  import Logo from "components/shared/Logo";
  
  describe("&lt;Logo /&gt;", () =&gt; {
    it("renders an image", () =&gt; {
      const logo = shallow(&lt;Logo /&gt;);
  
      expect(logo.find("img").prop("src")).toEqual("blahh");
    });
  });
  </code></pre>
  
  <p>But when I run the test, there is some weird error:</p>
  
  <pre><code>$ NODE_PATH=src jest
   FAIL  src/tests/Logo.test.js
    ● &lt;Logo /&gt; › renders an image
  
      TypeError: val.entries is not a function
  
        at printImmutableEntries (node_modules/expect/node_modules/pretty-format/build/plugins/immutable.js:44:5)
        at Object.&lt;anonymous&gt;.exports.serialize (node_modules/expect/node_modules/pretty-format/build/plugins/immutable.js:178:12)
  </code></pre>
  
  <p>How am I supposed to test that the image src === "assets/images/logo.png"?</p>