I am trying to use Resharper to run my Javascript unit tests using phantomJS [Headless] with Visual Studio. When I include a reference to jasmine in my file it breaks the test. However if I comment out the top line it works. Why? my test is written in jasmine syntax...
/// <reference path="../jasmine/jasmine.js"/> <-- when I comment this, tests work
/// <reference path="../angular-loader.js"/>
/// <reference path="../angular-mocks.js"/>
/// <reference path="../angular.js"/>
/// <reference path="../teststuff/app.js"/>
describe('jasmineApp', function () {
var scope = {};
scope.name = '';
beforeEach(angular.mock.module('jasmineApp'));
beforeEach(angular.mock.inject(function ($rootScope, $controller) {
scope = $rootScope.$new();
$controller('jasmineAppController', { $scope: scope });
}));
it('name is eric', inject(function () {
expect(scope.name).toEqual("eric");
}));
});