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
{{ message }}
This repository has been archived by the owner on Sep 20, 2020. It is now read-only.
this both is controller ans test file of controller. i am running with "karma start --single-run" but it throws 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)
this both is controller ans test file of controller. i am running with "karma start --single-run" but it throws 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
app.controller('dataEntryController',
['$cacheFactory', '$scope', 'productDataSvc', '$stateParams', '$state',
'$rootScope', '$controller', 'GridDataService', 'bentoComboDataService', 'bmJobQueue', '$translate', '$injector',
'$animate', '$q', '$timeout', 'AssociationService','errorAlertsFactory', 'dataEntryConfigService', 'bentoComboViewCacheService',
function ($cacheFactory, $scope, productDataSvc, $stateParams, $state,
$rootScope, $controller, GridDataService, bentoComboDataService, bmJobQueue, $translate, $injector,
$animate, $q, $timeout, AssociationService, errorAlertsFactory, dataEntryConfigService, bentoComboViewCacheService)
{
////////////////////////////////////////
/// initialization
////////////////////////////////////////
//$scope.debug = true;
//$scope.debugWantPollingMessages = true;
$scope.isLoaderBusyDE = true;
$scope.onInshUpdate000 = false;
$scope.doInshUpdate000 = false;
$scope.pollingSuspended = false;
$scope.unitsBeingAdded = new Set();
$scope.setBentoComboboxData = false;
$scope.deferredPromisesToDestroy = [];
$scope.previouslyHadData = $scope.currentlyHasData = false;
...............
............
.........
}
controller_test.js
var $cacheFactory, $scope, productDataSvc, $stateParams, $state,$rootScope, $controller, GridDataService, bentoComboDataService, bmJobQueue, $translate, $injector, $animate, $q, $timeout, AssociationService, errorAlertsFactory, dataEntryConfigService, bentoComboViewCacheService;
describe("data entry controller", function () {
});
The text was updated successfully, but these errors were encountered: