fix tests
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Pau 2022-10-27 08:51:22 +02:00
parent bfb9484e02
commit 04514804b7
2 changed files with 14 additions and 14 deletions

View File

@ -281,4 +281,18 @@ describe('Ticket Component vnTicketDescriptorMenu', () => {
$httpBackend.flush();
});
});
describe('transferClient()', () => {
it(`should perform two queries, a get to obtain the clientData and a patch to update the ticket`, () => {
const client =
{
clientFk: 1101,
addressFk: 1,
};
$httpBackend.expect('GET', `Clients/${ticket.client.id}`).respond(client);
$httpBackend.expect('PATCH', `Tickets/${ticket.id}`).respond();
controller.transferClient();
$httpBackend.flush();
});
});
});

View File

@ -42,18 +42,4 @@ describe('Ticket Component vnTicketDescriptor', () => {
$httpBackend.flush();
});
});
describe('transferClient()', () => {
it(`should perform two queries, a get to obtain the clientData and a patch to update the ticket`, () => {
let client =
{
clientFk: 1101,
addressFk: 1,
};
$httpBackend.expect('GET', `Clients/${ticket.client.id}`).respond(client);
$httpBackend.expect('PATCH', `Tickets/${ticket.id}`).respond();
controller.transferClient();
$httpBackend.flush();
});
});
});