extract ids to variable
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
bcbe264f0a
commit
e44de0246d
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue