From 580231d30bf716116e1e3c09bea234a439cdc01f Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 1 Oct 2021 14:48:25 +0200 Subject: [PATCH] Updated unit tests --- modules/invoiceOut/front/descriptor/index.spec.js | 1 - modules/ticket/front/descriptor-menu/index.spec.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/invoiceOut/front/descriptor/index.spec.js b/modules/invoiceOut/front/descriptor/index.spec.js index 6bf49d32b..0a5494b9a 100644 --- a/modules/invoiceOut/front/descriptor/index.spec.js +++ b/modules/invoiceOut/front/descriptor/index.spec.js @@ -19,7 +19,6 @@ describe('vnInvoiceOutDescriptor', () => { controller.invoiceOut = invoiceOut; $httpBackend.whenGET(`InvoiceOuts/${invoiceOut.id}`).respond(); - $httpBackend.whenGET(`Tickets/16`).respond(); $httpBackend.expectPOST(`InvoiceOuts/${invoiceOut.id}/createPdf`).respond(); controller.createInvoicePdf(); $httpBackend.flush(); diff --git a/modules/ticket/front/descriptor-menu/index.spec.js b/modules/ticket/front/descriptor-menu/index.spec.js index d10f4e958..eabb77235 100644 --- a/modules/ticket/front/descriptor-menu/index.spec.js +++ b/modules/ticket/front/descriptor-menu/index.spec.js @@ -153,7 +153,7 @@ describe('Ticket Component vnTicketDescriptorMenu', () => { it('should make a query and show a success snackbar', () => { jest.spyOn(controller.vnApp, 'showSuccess'); - $httpBackend.whenGET(`InvoiceOuts/${ticket.invoiceOut.id}`).respond(); + $httpBackend.whenGET(`Tickets/16`).respond(); $httpBackend.expectPOST(`InvoiceOuts/${ticket.invoiceOut.id}/createPdf`).respond(); controller.createInvoicePdf(); $httpBackend.flush();