diff --git a/modules/ticket/front/sale/specs/index.spec.js b/modules/ticket/front/sale/specs/index.spec.js index 17f2559f9..11e3f5115 100644 --- a/modules/ticket/front/sale/specs/index.spec.js +++ b/modules/ticket/front/sale/specs/index.spec.js @@ -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();