diff --git a/modules/ticket/front/descriptor-menu/index.spec.js b/modules/ticket/front/descriptor-menu/index.spec.js index 71f1bbfe0..75f3522ae 100644 --- a/modules/ticket/front/descriptor-menu/index.spec.js +++ b/modules/ticket/front/descriptor-menu/index.spec.js @@ -263,11 +263,11 @@ describe('Ticket Component vnTicketDescriptorMenu', () => { }); describe('refundAll()', () => { - it('should make a query and show a go to ticket.card.sale', () => { - jest.spyOn(controller.$state, 'go').mockReturnValue('ok'); + it('should make a query and go to ticket.card.sale', () => { + jest.spyOn(controller.$state, 'go').mockReturnValue(); const expectedParams = {ticketId: ticket.id}; - $httpBackend.expect('POST', `Sales/refund`, expectedParams).respond({ticketId: 16}); + $httpBackend.expect('POST', `Sales/refundAll`, expectedParams).respond({ticketId: 16}); controller.refundAll(); $httpBackend.flush();