import './index'; describe('Client', () => { describe('Component vnClientAddressCreate', () => { let controller; let $componentController; let $state; beforeEach(ngModule('client')); beforeEach(angular.mock.inject((_$componentController_, _$state_) => { $componentController = _$componentController_; $state = _$state_; $state.params.id = '1234'; controller = $componentController('vnClientAddressCreate', {$state}); })); it('should define and set address property', () => { expect(controller.address.clientFk).toBe(1234); expect(controller.address.isActive).toBe(true); }); }); });