updated unit test
gitea/salix/1919-ticket_service_type This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-12-13 12:07:36 +01:00
parent 4e39a7823b
commit 8808e49a10
1 changed files with 2 additions and 2 deletions

View File

@ -54,11 +54,11 @@ describe('Ticket component vnTicketService', () => {
controller.newServiceType = {name: 'totally new stuff'}; controller.newServiceType = {name: 'totally new stuff'};
controller.currentServiceIndex = 0; 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'); controller.onNewServiceTypeResponse('accept');
$httpBackend.flush(); $httpBackend.flush();
expect(controller.services[0].description).toEqual('great service!'); expect(controller.services[0].ticketServiceTypeFk).toEqual(4001);
}); });
}); });
}); });