2018-05-23 12:26:51 +00:00
|
|
|
import './index';
|
2017-08-29 10:33:48 +00:00
|
|
|
|
2017-09-04 13:06:43 +00:00
|
|
|
describe('Client', () => {
|
2018-05-24 13:02:38 +00:00
|
|
|
describe('Component vnClientAddressCreate', () => {
|
2017-10-17 12:24:40 +00:00
|
|
|
let controller;
|
2017-09-04 13:06:43 +00:00
|
|
|
let $componentController;
|
|
|
|
let $state;
|
2017-08-29 10:33:48 +00:00
|
|
|
|
2018-12-22 10:59:26 +00:00
|
|
|
beforeEach(ngModule('client'));
|
2017-08-29 10:33:48 +00:00
|
|
|
|
2017-09-04 13:06:43 +00:00
|
|
|
beforeEach(angular.mock.inject((_$componentController_, _$state_) => {
|
|
|
|
$componentController = _$componentController_;
|
|
|
|
$state = _$state_;
|
|
|
|
$state.params.id = '1234';
|
2018-05-24 13:02:38 +00:00
|
|
|
controller = $componentController('vnClientAddressCreate', {$state});
|
2017-09-04 13:06:43 +00:00
|
|
|
}));
|
2017-08-29 10:33:48 +00:00
|
|
|
|
2017-09-04 13:06:43 +00:00
|
|
|
it('should define and set address property', () => {
|
|
|
|
expect(controller.address.clientFk).toBe(1234);
|
2018-01-29 11:37:54 +00:00
|
|
|
expect(controller.address.isActive).toBe(true);
|
2017-09-04 13:06:43 +00:00
|
|
|
});
|
2017-08-31 06:53:17 +00:00
|
|
|
});
|
|
|
|
});
|