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 7d0790684b
commit ffcb3629c5
1 changed files with 8 additions and 1 deletions

View File

@ -47,7 +47,14 @@ describe('ticket componentUpdate()', () => {
let ctx = {
args: {clientFk: clientID,
agencyModeFk: agencyModeID},
req: {accessToken: {userId: userID}}};
req: {
accessToken: {userId: userID},
headers: {origin: 'http://localhost'},
__: (value, params) => {
return params.nickname;
}
}
};
await app.models.Ticket.componentUpdate(ctx, ticketID, clientID, agencyModeID, addressID,
zoneID, warehouseID, companyID, shipped, landed, isDeleted, option);