extract ids to variable
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-04-06 14:58:17 +02:00
parent bcbe264f0a
commit e44de0246d
1 changed files with 4 additions and 2 deletions

View File

@ -6,9 +6,10 @@ describe('Address updateAddress', () => {
const provinceId = 5;
const incotermsId = 'FAS';
const customAgentOneId = 1;
const employeeId = 1;
const ctx = {
req: {
accessToken: {userId: 1}
accessToken: {userId: employeeId}
}
};
@ -108,10 +109,11 @@ describe('Address updateAddress', () => {
it('should update isLogifloraAllowed', async() => {
const tx = await models.Client.beginTransaction({});
const salesAssistantId = 21;
try {
const options = {transaction: tx};
ctx.req.accessToken.userId = 21;
ctx.req.accessToken.userId = salesAssistantId;
ctx.args = {
isLogifloraAllowed: true
};