pull request changes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
d88a404ce6
commit
fefff80af4
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue