This commit is contained in:
parent
be0120728d
commit
8fe9b387ce
|
@ -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()', () => {
|
||||
|
|
Loading…
Reference in New Issue