describe('LinkCIController', function () { 'use strict'; var ctrl, $controller, $rootScope, $scope, modalInstance, linkParams; beforeEach(module('myitsmApp')); beforeEach(inject(function (_$controller_, _$rootScope_) { $controller = _$controller_; $rootScope = _$rootScope_; $scope = $rootScope.$new(); linkParams = {selectedItem: {company: 'Calbro Services'}}; modalInstance = { close: jasmine.createSpy('modalInstance.close'), dismiss: jasmine.createSpy('modalInstance.dismiss'), result: { then: jasmine.createSpy('modalInstance.result.then') } }; ctrl = $controller('LinkCIController', { $scope: $scope, $modalInstance: modalInstance, linkParams: linkParams }); })); it('should exist', function () { expect(ctrl).toBeDefined(); }); });