title: How to mock a module in angular
body: <p>So I've read many posts but no suggestions as worked so far.</p>
  
  <p>I am wanting to mock a module - say angular-foo. The original file is loaded along with everything else. </p>
  
  <pre><code>angular.module('app', ['angular-foo'...
  </code></pre>
  
  <p>I would like to mock this module in my karma/mocha tests. I've tried suggestions such as calling it like this but it's a no go. </p>
  
  <pre><code>beforeEach(module('app'));
  
  beforeEach(module('angular-foo'))
  </code></pre>
  
  <p>How can I completely prevent the original angular-foo from running (yet it must load as part of the rest of the code)?</p>