title: Angularjs/Karma: Uncaught ReferenceError: inject is not defined
body: <p>I got this service</p>
  
  <pre><code>angular.module('common.utils', [])
  
  .service('Timer', function () {
      function Timer() {
          var start = new Date();
          return function () {
             return (new Date()).getTime() - start.getTime();
          };
      }
      return Timer;
  });
  </code></pre>
  
  <p>And i'm trying to write a simple test for it:</p>
  
  <pre><code>describe('common.utils', function() {
  
      beforeEach(function () {
          module('common.utils');
      });
  
      it('has a timer service', inject(function(Timer) {
          expect(Timer).not.toBeNull();
      }));
  
  }); 
  </code></pre>
  
  <p>And I keep getting <code>ReferenceError: inject is not defined</code>.</p>
  
  <p>I included <code>angular.js</code>, <code>angular-mocks.js</code> and all the app files (<code>module</code> is working... ). I don't understand what the problem is...  </p>