#1655 e2e ticket.sale Añadir lineas
gitea/salix/dev This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2019-09-06 14:56:56 +02:00
parent 56c291a160
commit 3c9fe334c9
1 changed files with 3 additions and 3 deletions

View File

@ -207,12 +207,12 @@ describe('Ticket', () => {
describe('updateConcept()', () => {
it('should make a POST query saving sale concept', () => {
spyOn(controller.$scope.watcher, 'updateOriginalData');
const data = {concept: 'My new weapon'};
const data = {newConcept: 'My new weapon'};
const sale = sales[0];
sale.concept = 'My new weapon';
$httpBackend.when('PATCH', `/api/Sales/1`, data).respond();
$httpBackend.expect('PATCH', `/api/Sales/1`, data).respond();
$httpBackend.when('POST', `/api/Sales/1/updateConcept`, data).respond();
$httpBackend.expect('POST', `/api/Sales/1/updateConcept`, data).respond();
controller.updateConcept(sale);
$httpBackend.flush();