4293-fix(timeEntry): fix back test #1024

Merged
joan merged 1 commits from 4293-timeEntry_backTest into dev 2022-07-11 06:54:21 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit b3d001bb9d - Show all commits

View File

@ -565,12 +565,12 @@ describe('workerTimeControl add/delete timeEntry()', () => {
date = nextWeek(date);
await populateWeek(date, monday, thursday, ctx, workerId, options);
date = weekDay(date, friday);
date.setHours(6, 59, 0);
date.setHours(7, 59, 0);
ctx.args = {timed: date, direction: 'in'};
await models.WorkerTimeControl.addTimeEntry(ctx, workerId, options);
try {
date.setHours(7, 1, 0);
date.setHours(8, 1, 0);
ctx.args = {timed: date, direction: 'out'};
await models.WorkerTimeControl.addTimeEntry(ctx, workerId, options);