Javascript 参数assetDetailController不是未定义的函数
我在Angular.js中相对较新,所以我尝试了其他所有解决方案,但它总是抛出一个错误assetDetailController不是一个未定义的函数。。我在这个网站上尝试了所有可能的解决方案Javascript 参数assetDetailController不是未定义的函数,javascript,angularjs,jasmine,Javascript,Angularjs,Jasmine,我在Angular.js中相对较新,所以我尝试了其他所有解决方案,但它总是抛出一个错误assetDetailController不是一个未定义的函数。。我在这个网站上尝试了所有可能的解决方案 describe('asset detail Controller', function () { describe('assetDetailController', function () {
describe('asset detail Controller',
function () {
describe('assetDetailController',
function () {
var scope;
var rportService;
var controller;
var $q;
var deferred, assetId, rootScope;
var httpMock, data;
beforeEach(module('app'));
// inject the required services and instantiate the controller
//beforeEach();
describe('asset detail Controller 2',
function () {
deferred = null;
//beforeEach();
//beforeEach(angular.mock.inject(function ($q) {
//}));
beforeEach();
it('test to be called with',
function ( done) {
angular.mock.inject(function ($rootScope, $controller, reportService, $q, $httpBackend) {
scope = $rootScope.$new();
rportService = reportService;
controller = $controller('assetDetailController',
{
$scope: scope,
assetId: assetId,
reportService: rportService,
rootScope: $rootScope
});
我没有添加剩余的行。我认为这部分代码应该有问题。。soI没有添加剩余的行。我认为这部分代码应该有问题。。所以