First try and Jasmine test running in Resharper not working
I get the following error in the browser that launches when I click to have the Jasmine test run.
It is having a problem with the beforeEach line is all I know, but not sure why.
PersonListController
encountered a declaration exception
The code I have in my test.js file is:
// The Jasmine Test Framework
/// <reference path="~/Scripts/jasmine/jasmine.js"/>
/// <reference path="~/Scripts/jasmine/jasmine-html.js"/>
// Angular requirements
/// <reference path="~/Scripts/angular.js" />
/// <reference path="~/Scripts/angular-mocks.js" />
var sampleApp = angular.module('sampleApp', []);
describe('PersonListController', function () {
beforeEach(module('sampleApp'));
it("Blah", function () {
var value = 3;
expect(value).toBe(3);
});
});
Please sign in to leave a comment.
Hi Eric,
this issue is fixed in upcoming 8.2.1 update.