refs #4614 fear(ticket): add 'set weight' funcionality #1487
|
@ -198,6 +198,17 @@ describe('Ticket Component vnTicketDescriptorMenu', () => {
|
||||||
expect(controller.reload).toHaveBeenCalledWith();
|
expect(controller.reload).toHaveBeenCalledWith();
|
||||||
expect(controller.vnApp.showSuccess).toHaveBeenCalled();
|
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()', () => {
|
describe('createPdfInvoice()', () => {
|
||||||
|
|
Loading…
Reference in New Issue