diff --git a/modules/client/back/methods/client/specs/updateAddress.spec.js b/modules/client/back/methods/client/specs/updateAddress.spec.js index 7aea6fcd7..5597c6e5a 100644 --- a/modules/client/back/methods/client/specs/updateAddress.spec.js +++ b/modules/client/back/methods/client/specs/updateAddress.spec.js @@ -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 };