fix: backTest
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
4b54cf954b
commit
e3e337c02e
|
@ -2,15 +2,12 @@ const models = require('vn-loopback/server/server').models;
|
||||||
|
|
||||||
describe('workerTimeControl sendMail()', () => {
|
describe('workerTimeControl sendMail()', () => {
|
||||||
const workerId = 18;
|
const workerId = 18;
|
||||||
const ctx = {
|
const activeCtx = {
|
||||||
req: {
|
getLocale: () => {
|
||||||
__: value => {
|
return 'en';
|
||||||
return value;
|
}
|
||||||
}
|
|
||||||
},
|
|
||||||
args: {}
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
const ctx = {req: activeCtx, args: {}};
|
||||||
|
|
||||||
it('should fill time control of a worker without records in Journey and with rest', async() => {
|
it('should fill time control of a worker without records in Journey and with rest', async() => {
|
||||||
const tx = await models.WorkerTimeControl.beginTransaction({});
|
const tx = await models.WorkerTimeControl.beginTransaction({});
|
||||||
|
|
Loading…
Reference in New Issue