bigbuffet-rw/app/soapbox/utils/__tests__/input.test.ts
2022-09-16 10:42:05 -05:00

7 lines
No EOL
298 B
TypeScript

import { normalizeUsername } from '../input';
test('normalizeUsername', () => {
expect(normalizeUsername('@alex')).toBe('alex');
expect(normalizeUsername('alex@alexgleason.me')).toBe('alex@alexgleason.me');
expect(normalizeUsername('@alex@gleasonator.com')).toBe('alex@gleasonator.com');
});