You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am facing this error while run jasmine test
Error: [$injector:modulerr] Failed to instantiate module undefined due to:
Error: [ng:areq] Argument 'fn' is not a function, got undefined
at bower_components/angular/angular.js:125:12
at bower_components/angular/angular.js:5034:15
at forEach (bower_components/angular/angular.js:418:20)
at loadModules (bower_components/angular/angular.js:4994:5)
at Object.createInjector [as injector] (bower_components/angular/angular.js:4911:19)
at UserContext.WorkFn (bower_components/angular-mocks/angular-mocks.js:3145:52)
i am facing this error while run jasmine test
Error: [$injector:modulerr] Failed to instantiate module undefined due to:
Error: [ng:areq] Argument 'fn' is not a function, got undefined
at bower_components/angular/angular.js:125:12
at bower_components/angular/angular.js:5034:15
at forEach (bower_components/angular/angular.js:418:20)
at loadModules (bower_components/angular/angular.js:4994:5)
at Object.createInjector [as injector] (bower_components/angular/angular.js:4911:19)
at UserContext.WorkFn (bower_components/angular-mocks/angular-mocks.js:3145:52)
controller.js
(function (angular, jQuery) {
'use strict';
var app = angular.module('taxDataEntry', [
'designdynamicscreens',
'taxcharDirective',
'taxdateDirective',
'taxlongDirective',
'taxidDirective',
'taxdoubleDirective',
'taxshortDirective',
'taxlong64Directive',
'taxstrDirective',
'taxglacDirective',
'taxpercentagereferenceDirective',
'dataEntry.tpls',
'dataEntryServices',
'taxDataEntry.config',
'DesignRendererServices']);
$rootScope, $controller, GridDataService, bentoComboDataService, bmJobQueue, $translate, $injector, $animate, $q, $timeout, AssociationService, errorAlertsFactory, dataEntryConfigService, bentoComboViewCacheService)
{
..............
.............
............
}
}
contoller_test.js
describe('Controller: dataEntryController', function () {
'use strict';
);
var $cacheFactory, $scope, productDataSvc, $stateParams, $state,
$rootScope, $controller, GridDataService, bentoComboDataService, bmJobQueue, $translate, $injector,
$animate, $q, $timeout, AssociationService, errorAlertsFactory, dataEntryConfigService, bentoComboViewCacheService;
});
i have loaded all file into karma config too but it dispaly "fn" error.. please guide something
The text was updated successfully, but these errors were encountered: