From 0f57a40aac1831c0b3a35b4d4f459a87e030ad09 Mon Sep 17 00:00:00 2001 From: vicent Date: Fri, 21 Oct 2022 10:50:18 +0200 Subject: [PATCH] fix: backTest --- .../invoiceOut/front/index/global-invoicing/index.spec.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/invoiceOut/front/index/global-invoicing/index.spec.js b/modules/invoiceOut/front/index/global-invoicing/index.spec.js index 04ea99e37..7dcc51e59 100644 --- a/modules/invoiceOut/front/index/global-invoicing/index.spec.js +++ b/modules/invoiceOut/front/index/global-invoicing/index.spec.js @@ -87,10 +87,7 @@ describe('InvoiceOut', () => { it('should make an http POST query and then call to the showSuccess() method', () => { jest.spyOn(controller.vnApp, 'showSuccess'); - const filter = { - order: 'id DESC', - limit: 1 - }; + const minShipped = new Date(); minShipped.setFullYear(minShipped.getFullYear() - 1); minShipped.setMonth(1); @@ -109,8 +106,6 @@ describe('InvoiceOut', () => { invoice: controller.invoice }; - const serializedParams = $httpParamSerializer({filter}); - $httpBackend.expectGET(`Clients/findOne?${serializedParams}`).respond(200, {id: 1112}); $httpBackend.expect('POST', `InvoiceOuts/clientToInvoice`).respond(response); $httpBackend.expect('POST', `InvoiceOuts/invoiceClient`).respond({id: 1}); controller.responseHandler('accept');