Merge branch 'dev' of https://git.verdnatura.es/salix into dev
This commit is contained in:
commit
9b8ee8b787
|
@ -1,7 +1,7 @@
|
||||||
import './index';
|
import './index';
|
||||||
|
|
||||||
describe('Client', () => {
|
describe('Client', () => {
|
||||||
describe('Component vnAddressCreate', () => {
|
describe('Component vnClientAddressCreate', () => {
|
||||||
let controller;
|
let controller;
|
||||||
let $componentController;
|
let $componentController;
|
||||||
let $state;
|
let $state;
|
||||||
|
@ -14,7 +14,7 @@ describe('Client', () => {
|
||||||
$componentController = _$componentController_;
|
$componentController = _$componentController_;
|
||||||
$state = _$state_;
|
$state = _$state_;
|
||||||
$state.params.id = '1234';
|
$state.params.id = '1234';
|
||||||
controller = $componentController('vnAddressCreate', {$state});
|
controller = $componentController('vnClientAddressCreate', {$state});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should define and set address property', () => {
|
it('should define and set address property', () => {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import './index';
|
import './index';
|
||||||
|
|
||||||
describe('Client', () => {
|
describe('Client', () => {
|
||||||
describe('Component vnAddressEdit', () => {
|
describe('Component vnClientAddressEdit', () => {
|
||||||
let $componentController;
|
let $componentController;
|
||||||
let $state;
|
let $state;
|
||||||
let controller;
|
let controller;
|
||||||
|
@ -16,7 +16,7 @@ describe('Client', () => {
|
||||||
$state = _$state_;
|
$state = _$state_;
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
$state.params.addressId = '1';
|
$state.params.addressId = '1';
|
||||||
controller = $componentController('vnAddressEdit', {$state: $state});
|
controller = $componentController('vnClientAddressEdit', {$state: $state});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should define and set address property', () => {
|
it('should define and set address property', () => {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import './index';
|
import './index';
|
||||||
|
|
||||||
describe('Client', () => {
|
describe('Client', () => {
|
||||||
describe('Component vnClientCreditClassificationList', () => {
|
describe('Component vnClientCreditInsuranceIndex', () => {
|
||||||
let $componentController;
|
let $componentController;
|
||||||
let controller;
|
let controller;
|
||||||
let $httpBackend;
|
let $httpBackend;
|
||||||
|
@ -13,7 +13,7 @@ describe('Client', () => {
|
||||||
beforeEach(angular.mock.inject((_$componentController_, _$httpBackend_) => {
|
beforeEach(angular.mock.inject((_$componentController_, _$httpBackend_) => {
|
||||||
$componentController = _$componentController_;
|
$componentController = _$componentController_;
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
controller = $componentController('vnClientCreditClassificationList');
|
controller = $componentController('vnClientCreditInsuranceIndex');
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('_getClassifications()', () => {
|
describe('_getClassifications()', () => {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import './index';
|
import './index';
|
||||||
|
|
||||||
describe('Client', () => {
|
describe('Client', () => {
|
||||||
describe('Component vnClientCreditInsuranceList', () => {
|
describe('Component vnClientCreditInsuranceInsuranceIndex', () => {
|
||||||
let $componentController;
|
let $componentController;
|
||||||
let controller;
|
let controller;
|
||||||
let $httpBackend;
|
let $httpBackend;
|
||||||
|
@ -14,7 +14,7 @@ describe('Client', () => {
|
||||||
$componentController = _$componentController_;
|
$componentController = _$componentController_;
|
||||||
let $state = {params: {classificationId: 1}};
|
let $state = {params: {classificationId: 1}};
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
controller = $componentController('vnClientCreditInsuranceList', {$state: $state});
|
controller = $componentController('vnClientCreditInsuranceInsuranceIndex', {$state: $state});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should perform a query to GET credit the credit classification', () => {
|
it('should perform a query to GET credit the credit classification', () => {
|
||||||
|
|
|
@ -78,7 +78,7 @@ describe('Client', () => {
|
||||||
client.credit = 1;
|
client.credit = 1;
|
||||||
controller.addCredit();
|
controller.addCredit();
|
||||||
|
|
||||||
expect(controller.$state.go).toHaveBeenCalledWith('client.card.credit.list');
|
expect(controller.$state.go).toHaveBeenCalledWith('client.card.credit.index');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -32,7 +32,7 @@ describe('Client', () => {
|
||||||
spyOn($state, 'go');
|
spyOn($state, 'go');
|
||||||
controller.onSubmit();
|
controller.onSubmit();
|
||||||
|
|
||||||
expect(controller.$state.go).toHaveBeenCalledWith('client.card.greuge.list');
|
expect(controller.$state.go).toHaveBeenCalledWith('client.card.greuge.index');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import './index';
|
import './index';
|
||||||
|
|
||||||
describe('Client', () => {
|
describe('Client', () => {
|
||||||
describe('Component vnClientNotes', () => {
|
describe('Component vnClientNote', () => {
|
||||||
let $componentController;
|
let $componentController;
|
||||||
let $state;
|
let $state;
|
||||||
let $httpBackend;
|
let $httpBackend;
|
||||||
|
@ -16,7 +16,7 @@ describe('Client', () => {
|
||||||
$state = _$state_;
|
$state = _$state_;
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
$httpBackend.when('GET', /\/locale\/\w+\/[a-z]{2}\.json/).respond({});
|
$httpBackend.when('GET', /\/locale\/\w+\/[a-z]{2}\.json/).respond({});
|
||||||
controller = $componentController('vnClientNotes', {$state: $state});
|
controller = $componentController('vnClientNote', {$state: $state});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('$onChanges()', () => {
|
describe('$onChanges()', () => {
|
||||||
|
@ -51,7 +51,7 @@ describe('Client', () => {
|
||||||
spyOn(controller.$state, 'go');
|
spyOn(controller.$state, 'go');
|
||||||
controller.newObservation();
|
controller.newObservation();
|
||||||
|
|
||||||
expect(controller.$state.go).toHaveBeenCalledWith('client.card.notes.create', Object({id: '1234'}));
|
expect(controller.$state.go).toHaveBeenCalledWith('client.card.note.create', Object({id: '1234'}));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -12,7 +12,7 @@ class Controller {
|
||||||
this.recovery.clientFk = this.$state.params.id;
|
this.recovery.clientFk = this.$state.params.id;
|
||||||
this.$.watcher.submit().then(
|
this.$.watcher.submit().then(
|
||||||
() => {
|
() => {
|
||||||
this.$state.go('client.card.recovery.list');
|
this.$state.go('client.card.recovery.index');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ describe('Client', () => {
|
||||||
spyOn($state, 'go');
|
spyOn($state, 'go');
|
||||||
controller.onSubmit();
|
controller.onSubmit();
|
||||||
|
|
||||||
expect(controller.$state.go).toHaveBeenCalledWith('client.card.recovery.list');
|
expect(controller.$state.go).toHaveBeenCalledWith('client.card.recovery.index');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue