Running Visual Studio I have the following jasmine test.
'use strict';
///<reference path="jasmine.js"/>
///<reference path="../../Scripts/angular.min.js"/>
///<reference path="../../Scripts/angular-route.min.js"/>
///<reference path="../../Scripts/angular-mocks.js"/>
///<reference path="../application.js"/>
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);
});
});
});
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"
I am not sure what I am doing wrong here, any suggestions? I checked the paths to the files referenced and they are correct.