Publish ITWorx Pulse source
Public source validation / validate (push) Failing after 3m8s

This commit is contained in:
ITWorx Pulse release export
2026-09-03 02:09:19 +02:00
commit bd774932d5
614 changed files with 77116 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { describe, expect, it } from 'vitest';
import { formatDateTime, hasReceivedTimestamp, NEVER_RECEIVED } from '../../src/locale';
describe('veilige tijdpresentatie', () => {
it('presenteert ontbrekende, ongeldige en nulwaarden als nooit ontvangen', () => {
expect(formatDateTime()).toBe(NEVER_RECEIVED);
expect(formatDateTime('ongeldig')).toBe(NEVER_RECEIVED);
expect(formatDateTime('0001-01-01T00:00:00Z')).toBe(NEVER_RECEIVED);
expect(formatDateTime('1970-01-01T00:00:00Z')).toBe(NEVER_RECEIVED);
});
it('behoudt een werkelijk ontvangen timestamp en de vaste Brusselse tijdzone', () => {
const value = '2026-08-21T14:05:00Z';
expect(hasReceivedTimestamp(value)).toBe(true);
expect(formatDateTime(value)).toContain('16:05');
});
});