⨠Workrail Formatters Test
Testing all formatting utilities from utils/formatters.js
ā° Time & Date Formatting
š Progress & Confidence
š·ļø Status Formatting
', formatters.escapeHtml('')),
renderTest('escapeHtml()', 'Normal text', formatters.escapeHtml('Normal text')),
renderTest('truncate()', ['Very long title here', 15], formatters.truncate('Very long title that needs truncating', 15)),
renderTest('truncate()', ['Short', 15], formatters.truncate('Short', 15)),
].join('');
console.log('%cā
All formatters loaded successfully!', 'color: green; font-weight: bold; font-size: 14px;');
console.log('Available formatters:', Object.keys(formatters));
console.log('Try: formatters.formatTime(new Date())');