fix: Avatar renders an incorrect symbol if it has emoji (#5184)

This commit is contained in:
Sivin Varghese
2022-08-03 14:11:33 +05:30
committed by GitHub
parent e0cebfaa1a
commit f7d4f39b5c
3 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
import { removeEmoji } from '../emoji';
describe('#removeEmoji', () => {
it('returns values without emoji', () => {
expect(removeEmoji('😄Hi👋🏻 there❕')).toEqual('Hi there');
});
});