title: jasmine encountered a declaration exception
body: <p>Running Visual Studio I have the following jasmine test.</p>
  
  <pre><code>'use strict';
  
  ///&lt;reference path="jasmine.js"/&gt;
  ///&lt;reference path="../../Scripts/angular.min.js"/&gt;
  ///&lt;reference path="../../Scripts/angular-route.min.js"/&gt;
  ///&lt;reference path="../../Scripts/angular-mocks.js"/&gt;
  ///&lt;reference path="../application.js"/&gt;
  
  describe('StatusPage Tests', function () {
      describe('Application Functions', function () {
          var location;
  
          beforeEach(module("StatusApplication"));
  
          beforeEach(inject(function($location) {
              location = $location;
          }));
  
          it('DetermineRootUrl_Application_RootUrl', function () {
              var result = DetermineRootUrl(location);
  
              var expectedResult = 'https://localhost/OK59SP1/';
              expect(expectedResult).toBe(expectedResult);
          });
      });
  });
  </code></pre>
  
  <p>the problem seems when I try and use a angular-mock function.
  as soon as I include any of the beforeEach code blocks the test does not run and the only message I get back is "encountered a declaration exception"</p>
  
  <p>I am not sure what I am doing wrong here, any suggestions?
  I checked the paths to the files referenced and they are correct.</p>