4804-ticket.descriptor_sms #1217
|
@ -258,6 +258,19 @@ describe('Ticket Component vnTicketDescriptorMenu', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('sendChangesSms()', () => {
|
||||||
|
it('should make a query and open the sms dialog', () => {
|
||||||
|
controller.$.sms = {open: () => {}};
|
||||||
|
jest.spyOn(controller.$.sms, 'open');
|
||||||
|
|
||||||
|
$httpBackend.expectGET(`TicketLogs/${ticket.id}/getChanges`).respond();
|
||||||
|
controller.sendChangesSms();
|
||||||
|
$httpBackend.flush();
|
||||||
|
|
||||||
|
expect(controller.$.sms.open).toHaveBeenCalledWith();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
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: () => {}};
|
||||||
|
|
Loading…
Reference in New Issue