Updated unit test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-10-20 15:01:02 +02:00
parent f7e9372bf0
commit 611e1a3802
1 changed files with 8 additions and 1 deletions

View File

@ -42,7 +42,14 @@ describe('ticket componentUpdate()', () => {
let ctx = { let ctx = {
args: {clientFk: 102, args: {clientFk: 102,
agencyModeFk: 8}, agencyModeFk: 8},
req: {accessToken: {userId: 101}}}; req: {
accessToken: {userId: 101},
headers: {origin: 'http://localhost'},
__: (value, params) => {
return params.nickname;
}
}
};
await app.models.Ticket.componentUpdate(ctx, ticketId, clientId, agencyModeId, addressId, await app.models.Ticket.componentUpdate(ctx, ticketId, clientId, agencyModeId, addressId,
zoneId, warehouseId, companyId, shipped, landed, isDeleted, option); zoneId, warehouseId, companyId, shipped, landed, isDeleted, option);