3830-ticket_sale #927

Merged
carlosjr merged 9 commits from 3830-ticket_sale into dev 2022-04-13 09:30:49 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit fefff80af4 - Show all commits

View File

@ -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', () => {
vicent marked this conversation as resolved Outdated

show a go?

show a go?
jest.spyOn(controller.$state, 'go').mockReturnValue();
vicent marked this conversation as resolved Outdated

do you need this spy to return a value?

do you need this spy to return a value?
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();