From b3d001bb9dcaba25097ed8b2ed7adb7240557163 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 11 Jul 2022 08:17:32 +0200 Subject: [PATCH] fix(timeEntry): fix back test --- .../back/methods/worker-time-control/specs/timeEntry.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/worker/back/methods/worker-time-control/specs/timeEntry.spec.js b/modules/worker/back/methods/worker-time-control/specs/timeEntry.spec.js index b5ef86c37..e1e0feced 100644 --- a/modules/worker/back/methods/worker-time-control/specs/timeEntry.spec.js +++ b/modules/worker/back/methods/worker-time-control/specs/timeEntry.spec.js @@ -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);