I am trying to use Resharper to run my Javascript unit tests using phantomJS [Headless] with Visual Studio. When I include a jasmine link in my file, it interrupts the test. However, if I comment on the top line, it works. What for? 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"); })); });
source share