7691-testToMaster #2703
|
@ -35,7 +35,7 @@ module.exports = Self => {
|
||||||
root: true
|
root: true
|
||||||
},
|
},
|
||||||
http: {
|
http: {
|
||||||
path: '/weekly-hour-hecord-email',
|
path: '/weekly-hour-record-email',
|
||||||
verb: 'POST'
|
verb: 'POST'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -430,7 +430,7 @@ class Controller extends Section {
|
||||||
workerId: this.worker.id,
|
workerId: this.worker.id,
|
||||||
state: 'SENDED'
|
state: 'SENDED'
|
||||||
};
|
};
|
||||||
this.$http.post(`WorkerTimeControls/weekly-hour-hecord-email`, params)
|
this.$http.post(`WorkerTimeControls/weekly-hour-record-email`, params)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.getMailStates(this.date);
|
this.getMailStates(this.date);
|
||||||
this.vnApp.showSuccess(this.$t('Email sended'));
|
this.vnApp.showSuccess(this.$t('Email sended'));
|
||||||
|
|
|
@ -260,7 +260,7 @@ describe('Component vnWorkerTimeControl', () => {
|
||||||
controller.date = today;
|
controller.date = today;
|
||||||
controller.weekNumber = 1;
|
controller.weekNumber = 1;
|
||||||
|
|
||||||
$httpBackend.expect('POST', 'WorkerTimeControls/weekly-hour-hecord-email').respond();
|
$httpBackend.expect('POST', 'WorkerTimeControls/weekly-hour-record-email').respond();
|
||||||
controller.resendEmail();
|
controller.resendEmail();
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue