in karma/mocha test 'before(angular.mock.module('app'));' throw error and `beforeEach(angular.mock.module('app'));` work why?
<p>so I start to use karma/mocha lib to test webpack/angular app</p>

<p>and when I write 
<code>before(angular.mock.module('app'));</code> it throw error </p>

<pre><code>FAILED timer factory "before all" hook: workFn
debug.html:38 TypeError: Cannot read property '$injector' of null
at Context.workFn (base/node_modules/angular-mocks/angular-mocks.js:2653:22)
</code></pre>

<p>and when using <code>beforeEach(angular.mock.module('app'));</code> it work fine.</p>

<p>why??</p>

<p>I think I should init the module one not every test</p>

<p>the code:</p>

<pre><code>describe('timer factory', function () {

  beforeEach(angular.mock.module('app'));

  it('should exist',inject(function (Timer) {
    timer = new Timer();
    should.exist(timer);
  }));
});
</code></pre>