updated unit test
gitea/salix/1919-ticket_service_type This commit looks good
Details
gitea/salix/1919-ticket_service_type This commit looks good
Details
This commit is contained in:
parent
4e39a7823b
commit
8808e49a10
|
@ -54,11 +54,11 @@ describe('Ticket component vnTicketService', () => {
|
|||
controller.newServiceType = {name: 'totally new stuff'};
|
||||
controller.currentServiceIndex = 0;
|
||||
|
||||
$httpBackend.when('POST', 'TicketServiceTypes').respond({id: 4001, name: 'great service!'});
|
||||
$httpBackend.when('POST', 'TicketServiceTypes').respond({id: 4001, name: 'totally new stuff'});
|
||||
controller.onNewServiceTypeResponse('accept');
|
||||
$httpBackend.flush();
|
||||
|
||||
expect(controller.services[0].description).toEqual('great service!');
|
||||
expect(controller.services[0].ticketServiceTypeFk).toEqual(4001);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue