From 8fe9b387ce5b00d287b0a3f08e31d41e2969dbe3 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 6 Jul 2023 15:16:52 +0200 Subject: [PATCH] refs #4614 test: front and correct folder --- db/changes/{232801 => 233001}/00-ticketWeight.sql | 0 modules/ticket/front/descriptor-menu/index.spec.js | 11 +++++++++++ 2 files changed, 11 insertions(+) rename db/changes/{232801 => 233001}/00-ticketWeight.sql (100%) diff --git a/db/changes/232801/00-ticketWeight.sql b/db/changes/233001/00-ticketWeight.sql similarity index 100% rename from db/changes/232801/00-ticketWeight.sql rename to db/changes/233001/00-ticketWeight.sql diff --git a/modules/ticket/front/descriptor-menu/index.spec.js b/modules/ticket/front/descriptor-menu/index.spec.js index 0aef956db..953de3962 100644 --- a/modules/ticket/front/descriptor-menu/index.spec.js +++ b/modules/ticket/front/descriptor-menu/index.spec.js @@ -198,6 +198,17 @@ describe('Ticket Component vnTicketDescriptorMenu', () => { expect(controller.reload).toHaveBeenCalledWith(); expect(controller.vnApp.showSuccess).toHaveBeenCalled(); }); + + it('should show withoutWeightConfirmation', () => { + controller.$.withoutWeightConfirmation = {show: () => {}}; + jest.spyOn(controller.$.withoutWeightConfirmation, 'show'); + controller.ticket.address.incotermsFk = true; + + controller.makeInvoice(); + controller.ticket.address.incotermsFk = false; + + expect(controller.$.withoutWeightConfirmation.show).toHaveBeenCalled(); + }); }); describe('createPdfInvoice()', () => {