Improvements todo created and small bugfixes

This commit is contained in:
2026-05-25 12:56:08 +02:00
parent 499f68b9ee
commit 648d376a12
10 changed files with 807 additions and 72 deletions
+10 -1
View File
@@ -8,6 +8,7 @@ import {
formatMinutes,
getDaysAgo,
getToday,
timeToMinutes,
} from '../../src/utils/time';
describe('formatMinutesAfter', () => {
@@ -103,4 +104,12 @@ describe('getToday', () => {
const today = new Date().toISOString().split('T')[0];
expect(result).toBe(today);
});
});
});
describe('timeToMinutes', () => {
it('converts HH:MM to minutes', () => {
expect(timeToMinutes('07:30')).toBe(450);
expect(timeToMinutes('00:00')).toBe(0);
expect(timeToMinutes('23:59')).toBe(1439);
});
});