mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
Align channel avatars and compact
This commit is contained in:
@@ -22,5 +22,13 @@ void main() {
|
||||
test('keeps non-hash labels at two characters', () {
|
||||
expect(AvatarLabelHelper.buildLabel('abc'), 'AB');
|
||||
});
|
||||
|
||||
test('strips emoji when building fallback initials', () {
|
||||
expect(AvatarLabelHelper.buildLabel('Charlie 🙂 Delta'), 'CD');
|
||||
});
|
||||
|
||||
test('strips leading emoji when building fallback initials', () {
|
||||
expect(AvatarLabelHelper.buildLabel('🙂 Charlie'), 'CH');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user