🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { describe, expect, it } from 'vitest';
import { EMAIL_SUPPORT_ADDRESS, getEmailSupportHtml, getEmailSupportText } from './support';
describe('email support helpers', () => {
it('renders actionable support links for HTML and plain-text emails', () => {
const html = getEmailSupportHtml();
const text = getEmailSupportText();
expect(EMAIL_SUPPORT_ADDRESS).toBe('[email protected]');
expect(html).toContain('href="mailto:[email protected]"');
expect(html).toContain('https://discord.gg/');
expect(text).toContain('[email protected]');
expect(text).toContain('https://discord.gg/');
});
it('escapes localized labels before rendering HTML', () => {
const html = getEmailSupportHtml({
contactSupport: '<script>alert("support")</script>',
joinDiscord: '<strong>Discord</strong>',
});
expect(html).not.toContain('<script>');
expect(html).not.toContain('<strong>');
expect(html).toContain('<script>');
expect(html).toContain('<strong>');
});
});