Rechtliches: Fristen ohne Monatsende-Drift, Indizes und Warten auf Attribute im Setup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-09-30 10:33:56 +00:00
1 parent c8c1d84794
commit c24b3d43c8
4 files changed
+65 -5

No files matched your search

+9
View File
@@ -136,3 +136,12 @@ test('Abloesung am selben Tag: validTo nie vor validFrom', () => {
const r = planNewVersion([v5], { documentKey: 'agb', version: 'v6', status: 'current', validFrom: '2026-05-01' })
assert.deepEqual(r.updates, [{ id: 'v5', patch: { status: 'superseded', validTo: '2026-05-01' } }])
})
test('Verlaengerungen ab dem 31. driften nicht auf den 28.', () => {
const r = nextCancellationDate(
{ startDate: '2025-01-31', termMonths: 1, renewalMonths: 1, noticeValue: 1, noticeUnit: 'days' },
'2025-04-05'
)
assert.equal(r.periodEnd, '2025-04-30')
assert.equal(r.noticeBy, '2025-04-29')
})