Hi I am new to jasmine.
Using Visual Studio to test some angular stuff.
Test file looks like this:
'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);
expect(expectedResult).toBe(expectedResult);
});
});
});
it seems like any angular mock function gives a "encountered a declaration exception"
if I use beforeEach on it's own it does not give a problem.
As soon as I try to inject something like $location, it just refuses to work.
Any help would be greatly appreciated.