3830-ticket_sale #927
|
@ -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
|
||||
jest.spyOn(controller.$state, 'go').mockReturnValue();
|
||||
vicent marked this conversation as resolved
Outdated
carlosjr
commented
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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
show a go?