/* MMigreringsbeslut: denna test behöver Chrome headless eller PhantomJs + es6-shim för att kunna köras */ /** * @ngdoc ObjektListaCtrl * @description Test för ObjektListaCtrl */ describe('ObjektListaCtrl', function () { var ctrl; var scope : fb.IObjektListaScope; beforeEach(function () { angular.mock.module('fasit', 'fbMocks'); }); beforeEach(inject(function ($rootScope: any, $controller: ng.IControllerService, $q, kommunServiceMock: fb.IKommunService, soekFilterParameterService: fb.ISoekFilterParameterService, annonsleverantoerService: fb.IAnnonsleverantoerService ){ scope = $rootScope.$new(); var def = $q.defer(); $rootScope.InloggadAnvaendare = { promise: def.promise, Kontor: 1337 }; ctrl = $controller('ObjektListaCtrl', { $scope: scope, $rootScope: $rootScope, kommunService: kommunServiceMock, soekFilterParameterService: soekFilterParameterService, annonsleverantoerService: annonsleverantoerService }); scope.$digest(); })); it('borde kunna initialiseras', function () { expect(ctrl).toBeDefined(); }); });