Terminplaner: Warnung im Dialog, wenn K16 mit den Unterlagen nicht rausging

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-05 07:05:44 +00:00
1 parent 72eedeb59c
commit 878a530bd7
3 files changed
+20 -4

No files matched your search

+10
View File
@@ -23,6 +23,8 @@ const {
textformAnsicht,
textformBereit,
featureBody,
speicherStatus,
K16_WARNUNG,
} = await loadModule('src/lib/funktionenView.js')
test('FUNKTIONEN: News und Terminplaner mit den Bestätigungstexten', () => {
@@ -460,3 +462,11 @@ test('featureBody: Aktivieren mit Textform trägt Datum und Weg, sonst bleibt de
'halbe Angaben gehen nicht mit',
)
})
test('speicherStatus: warnung true (K16 nicht gesendet) wird zur Warnung, sonst "Gespeichert."', () => {
assert.deepEqual(speicherStatus({ projects: [], warnung: true }), { ok: false, text: K16_WARNUNG })
assert.match(K16_WARNUNG, /K16/)
assert.match(K16_WARNUNG, /von Hand/)
assert.deepEqual(speicherStatus({ projects: [] }), { ok: true, text: 'Gespeichert.' })
assert.deepEqual(speicherStatus(undefined), { ok: true, text: 'Gespeichert.' })
})