refs #4791 @30min fix broken test
This commit is contained in:
parent
4bd643143b
commit
0b6d7eaffc
|
@ -261,12 +261,8 @@ 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');
|
|
||||||
|
|
||||||
controller.showSMSDialog();
|
controller.showSMSDialog();
|
||||||
|
|
||||||
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,
|
||||||
|
|
Loading…
Reference in New Issue