fix test refs #4791 @30min
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Pau 2022-11-21 09:11:17 +01:00
parent 4e97d931f7
commit 153f5f56fa
1 changed files with 2 additions and 1 deletions

View File

@ -261,11 +261,12 @@ describe('Ticket Component vnTicketDescriptorMenu', () => {
describe('showSMSDialog()', () => { describe('showSMSDialog()', () => {
it('should set the destionationFk and destination properties and then call the sms open() method', () => { it('should set the destionationFk and destination properties and then call the sms open() method', () => {
controller.$.sms = {open: () => {}}; controller.$.sms = {open: () => {}};
let route = `Tickets/${ticket.id}/sendSms`;
jest.spyOn(controller.$.sms, 'open'); jest.spyOn(controller.$.sms, 'open');
controller.showSMSDialog(); controller.showSMSDialog();
expect(controller.$.sms.open).toHaveBeenCalledWith(); expect(controller.$.sms.open).toHaveBeenCalledWith(route);
expect(controller.newSMS).toEqual({ expect(controller.newSMS).toEqual({
destinationFk: ticket.clientFk, destinationFk: ticket.clientFk,
destination: ticket.address.mobile, destination: ticket.address.mobile,