title: Jasmine - ways of stubbing URL
body: <p>I have the following line in my code:</p>
  
  <pre><code>var fileUrl = URL.createObjectURL(file);
  </code></pre>
  
  <p>Unfortunately phantomjs doesn't have URL so I need to stub it out in Jasmine, but not sure how.</p>
  
  <p>I am using Jasmine 2 and AngularJS 1.4 </p>