pull request changes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-04-11 10:01:15 +02:00
parent d88a404ce6
commit fefff80af4
1 changed files with 3 additions and 3 deletions

View File

@ -263,11 +263,11 @@ describe('Ticket Component vnTicketDescriptorMenu', () => {
}); });
describe('refundAll()', () => { describe('refundAll()', () => {
it('should make a query and show a go to ticket.card.sale', () => { it('should make a query and go to ticket.card.sale', () => {
jest.spyOn(controller.$state, 'go').mockReturnValue('ok'); jest.spyOn(controller.$state, 'go').mockReturnValue();
const expectedParams = {ticketId: ticket.id}; 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(); controller.refundAll();
$httpBackend.flush(); $httpBackend.flush();