4903-sendMail_refactor #1181

Merged
vicent merged 2 commits from 4903-sendMail_refactor into dev 2022-11-29 07:42:48 +00:00
1 changed files with 5 additions and 8 deletions
Showing only changes of commit e3e337c02e - Show all commits

View File

@ -2,15 +2,12 @@ const models = require('vn-loopback/server/server').models;
describe('workerTimeControl sendMail()', () => {
const workerId = 18;
const ctx = {
req: {
__: value => {
return value;
}
},
args: {}
const activeCtx = {
getLocale: () => {
return 'en';
}
};
const ctx = {req: activeCtx, args: {}};
it('should fill time control of a worker without records in Journey and with rest', async() => {
const tx = await models.WorkerTimeControl.beginTransaction({});