mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-07-06 01:42:11 +02:00
Fix flag emoji 'profile picture' rendering
This commit is contained in:
@@ -13,6 +13,12 @@ describe('getAvatarText', () => {
|
||||
expect(getAvatarText('Test 😀 More 🎯', 'abc123')).toBe('😀');
|
||||
});
|
||||
|
||||
it('returns full flag emoji (not just first regional indicator)', () => {
|
||||
expect(getAvatarText('Jason 🇺🇸', 'abc123')).toBe('🇺🇸');
|
||||
expect(getAvatarText('🇬🇧 London', 'abc123')).toBe('🇬🇧');
|
||||
expect(getAvatarText('Test 🇯🇵 Japan', 'abc123')).toBe('🇯🇵');
|
||||
});
|
||||
|
||||
it('returns initials when name has space', () => {
|
||||
expect(getAvatarText('John Doe', 'abc123')).toBe('JD');
|
||||
expect(getAvatarText('Alice Bob Charlie', 'abc123')).toBe('AB');
|
||||
|
||||
Reference in New Issue
Block a user