From 04514804b716c28ad506eea3a3d7c7715a910acd Mon Sep 17 00:00:00 2001 From: Pau Navarro Date: Thu, 27 Oct 2022 08:51:22 +0200 Subject: [PATCH] fix tests --- modules/ticket/front/descriptor-menu/index.spec.js | 14 ++++++++++++++ modules/ticket/front/descriptor/index.spec.js | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/modules/ticket/front/descriptor-menu/index.spec.js b/modules/ticket/front/descriptor-menu/index.spec.js index 091b9a2cf..15e0ea530 100644 --- a/modules/ticket/front/descriptor-menu/index.spec.js +++ b/modules/ticket/front/descriptor-menu/index.spec.js @@ -281,4 +281,18 @@ describe('Ticket Component vnTicketDescriptorMenu', () => { $httpBackend.flush(); }); }); + + describe('transferClient()', () => { + it(`should perform two queries, a get to obtain the clientData and a patch to update the ticket`, () => { + const client = + { + clientFk: 1101, + addressFk: 1, + }; + $httpBackend.expect('GET', `Clients/${ticket.client.id}`).respond(client); + $httpBackend.expect('PATCH', `Tickets/${ticket.id}`).respond(); + controller.transferClient(); + $httpBackend.flush(); + }); + }); }); diff --git a/modules/ticket/front/descriptor/index.spec.js b/modules/ticket/front/descriptor/index.spec.js index 28e8bae3a..292ab8d55 100644 --- a/modules/ticket/front/descriptor/index.spec.js +++ b/modules/ticket/front/descriptor/index.spec.js @@ -42,18 +42,4 @@ describe('Ticket Component vnTicketDescriptor', () => { $httpBackend.flush(); }); }); - - describe('transferClient()', () => { - it(`should perform two queries, a get to obtain the clientData and a patch to update the ticket`, () => { - let client = - { - clientFk: 1101, - addressFk: 1, - }; - $httpBackend.expect('GET', `Clients/${ticket.client.id}`).respond(client); - $httpBackend.expect('PATCH', `Tickets/${ticket.id}`).respond(); - controller.transferClient(); - $httpBackend.flush(); - }); - }); });