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 provinceId = 5;
|
||||||
const incotermsId = 'FAS';
|
const incotermsId = 'FAS';
|
||||||
const customAgentOneId = 1;
|
const customAgentOneId = 1;
|
||||||
|
const employeeId = 1;
|
||||||
const ctx = {
|
const ctx = {
|
||||||
req: {
|
req: {
|
||||||
accessToken: {userId: 1}
|
accessToken: {userId: employeeId}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -108,10 +109,11 @@ describe('Address updateAddress', () => {
|
||||||
|
|
||||||
it('should update isLogifloraAllowed', async() => {
|
it('should update isLogifloraAllowed', async() => {
|
||||||
const tx = await models.Client.beginTransaction({});
|
const tx = await models.Client.beginTransaction({});
|
||||||
|
const salesAssistantId = 21;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const options = {transaction: tx};
|
const options = {transaction: tx};
|
||||||
ctx.req.accessToken.userId = 21;
|
ctx.req.accessToken.userId = salesAssistantId;
|
||||||
ctx.args = {
|
ctx.args = {
|
||||||
isLogifloraAllowed: true
|
isLogifloraAllowed: true
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue