Kundenseite: Kundenansicht oeffnen, letzter Login, Preview per Einmal-Link

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-01 19:44:50 +00:00
1 parent 370724a9a7
commit fce2f41463
7 files changed
+92 -7

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import test from 'node:test'
import assert from 'node:assert/strict'
import { loadModule } from './load.mjs'
// Karte „Portal-Zugang“: letzter Login des Kunden in deutscher Zeit
const { formatLastLogin } = await loadModule('src/lib/lastLogin.js')
test('formatLastLogin', () => {
assert.equal(formatLastLogin(null), 'noch nie')
assert.equal(formatLastLogin(''), 'noch nie')
assert.equal(formatLastLogin('2026-09-30T10:05:00.000Z'), '30.09.2026, 12:05 Uhr')
assert.equal(formatLastLogin('2026-01-15T07:00:00.000Z'), '15.01.2026, 08:00 Uhr')
})