Push-Zeitmail: Zeit nur in 15-Minuten-Schritten

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-09-30 15:09:12 +00:00
1 parent 7da4452bbd
commit 88854aa2b4
4 files changed
+33 -14

No files matched your search

+3 -2
View File
@@ -44,10 +44,11 @@ test('needsTimeEntry', () => {
assert.equal(needsTimeEntry({ serviceType: 'Remote', startTime: '', totalTime: 0 }), false)
})
test('parseMinutes: ganze Minuten 1–720', () => {
test('parseMinutes: nur 15-Minuten-Schritte 15–720', () => {
assert.equal(parseMinutes('45'), 45)
assert.equal(parseMinutes('15'), 15)
assert.equal(parseMinutes(720), 720)
for (const bad of ['1.5', '0', '721', '', 'abc', undefined, null, '-5', '45abc']) {
for (const bad of ['1.5', '0', '721', '735', '70', '1', '', 'abc', undefined, null, '-5', '-15', '45abc']) {
assert.equal(parseMinutes(bad), null, String(bad))
}
})