From 3c9fe334c9549cad9d478ebd0a66a03e9cf1ef30 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Fri, 6 Sep 2019 14:56:56 +0200 Subject: [PATCH] =?UTF-8?q?#1655=20e2e=20ticket.sale=20A=C3=B1adir=20linea?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ticket/front/sale/specs/index.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();