title: How to mock angular.element.injector().get;
body: <p>I have controller code like this in an angularjs file...</p>
  <pre><code>    function sendAnalytics(searchParams) {
          var analyticServiceCall = angular.element(document.body).injector().get('SomeElement');
       };
  </code></pre>
  <p>When I run test cases attached with the above controller I get the following error</p>
  <pre><code> * TypeError: Cannot call method &quot;get&quot; of undefined in http://localhost:46309/src/soemFolder/someController.js (line XYZ)
  </code></pre>
  <p>What I am understanding is, I need to mock angular.element(document.body).injector().get function but how to do it?</p>