diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql index 937e80d97..5629455a9 100644 --- a/db/dump/fixtures.sql +++ b/db/dump/fixtures.sql @@ -2231,7 +2231,7 @@ INSERT INTO `vn`.`workerTimeControl`(`userFk`, `timed`, `manual`, `direction`) VALUES (1106, CONCAT(util.VN_CURDATE(), ' 07:00'), TRUE, 'in'), (1106, CONCAT(util.VN_CURDATE(), ' 10:00'), TRUE, 'middle'), - (1106, CONCAT(util.VN_CURDATE(), ' 10:10'), TRUE, 'middle'), + (1106, CONCAT(util.VN_CURDATE(), ' 10:20'), TRUE, 'middle'), (1106, CONCAT(util.VN_CURDATE(), ' 15:00'), TRUE, 'out'); INSERT INTO `vn`.`dmsType`(`id`, `name`, `path`, `readRoleFk`, `writeRoleFk`, `code`) diff --git a/modules/worker/back/methods/worker/specs/getWorkedHours.spec.js b/modules/worker/back/methods/worker/specs/getWorkedHours.spec.js index 054a829e5..1337b1626 100644 --- a/modules/worker/back/methods/worker/specs/getWorkedHours.spec.js +++ b/modules/worker/back/methods/worker/specs/getWorkedHours.spec.js @@ -12,6 +12,6 @@ describe('Worker getWorkedHours()', () => { const [result] = await models.Worker.getWorkedHours(workerID, started, ended); expect(result.expectedHours).toEqual(28800); // 8:00 hours in seconds - expect(result.workedHours).toEqual(28200); // 7:50 hours in seconds + expect(result.workedHours).toEqual(28800); // 8:00 hours in seconds }); });