title: Get angular constants in Karma
body: <p>Given the app startup:</p>
  
  <pre><code>angular.module("starter", [ "ionic" ])
      .constant("DEBUG", true)
      .run(function() {
          /* ... */
      });
  </code></pre>
  
  <p>how would I test the value of <code>DEBUG</code>?</p>
  
  <p>When trying with:</p>
  
  <pre><code>describe("app", function() {
  
      beforeEach(function() {
          module("starter");
      });
  
      describe("constants", function() {
          describe("DEBUG", inject(function(DEBUG) {
              it("should be a boolean", function() {
                  expect(typeof DEBUG).toBe("boolean");
              });
          }));
      });
  });
  </code></pre>
  
  <p>I just get</p>
  
  <pre><code>TypeError: 'null' is not an object (evaluating 'currentSpec.$modules')
      at workFn (/%%%/www/lib/angular-mocks/angular-mocks.js:2230)
      at /%%%/www/js/app_test.js:14
      at /%%%/www/js/app_test.js:15
      at /%%%/www/js/app_test.js:16
  </code></pre>