diff --git a/app/javascript/mastodon/features/emoji/__tests__/emoji-test.js b/app/javascript/mastodon/features/emoji/__tests__/emoji-test.js
index 022c9baaf7..35804de82a 100644
--- a/app/javascript/mastodon/features/emoji/__tests__/emoji-test.js
+++ b/app/javascript/mastodon/features/emoji/__tests__/emoji-test.js
@@ -22,23 +22,23 @@ describe('emoji', () => {
it('does unicode', () => {
expect(emojify('\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66')).toEqual(
- '');
expect(emojify('๐จโ๐ฉโ๐งโ๐ง')).toEqual(
- '
');
+ expect(emojify('๐ฉโ๐ฉโ๐ฆ')).toEqual('
');
expect(emojify('\u2757')).toEqual(
- '
');
});
it('does multiple unicode', () => {
expect(emojify('\u2757 #\uFE0F\u20E3')).toEqual(
- '
');
expect(emojify('\u2757#\uFE0F\u20E3')).toEqual(
- '
');
expect(emojify('\u2757 #\uFE0F\u20E3 \u2757')).toEqual(
- '
');
expect(emojify('foo \u2757 #\uFE0F\u20E3 bar')).toEqual(
- 'foo
bar');
});
it('ignores unicode inside of tags', () => {
@@ -46,16 +46,16 @@ describe('emoji', () => {
});
it('does multiple emoji properly (issue 5188)', () => {
- expect(emojify('๐๐๐')).toEqual('
');
+ expect(emojify('๐ ๐ ๐')).toEqual('
');
});
it('does an emoji that has no shortcode', () => {
- expect(emojify('๐โ๐จ')).toEqual('
');
});
it('does an emoji whose filename is irregular', () => {
- expect(emojify('โ๏ธ')).toEqual('
');
});
it('avoid emojifying on invisible text', () => {
@@ -67,11 +67,11 @@ describe('emoji', () => {
it('avoid emojifying on invisible text with nested tags', () => {
expect(emojify('๐bar๐ด๐'))
- .toEqual('๐bar๐ด
');
expect(emojify('๐๐๐ด๐'))
- .toEqual('๐๐๐ด
');
expect(emojify('๐
๐ด๐'))
- .toEqual('๐
๐ด
๐ด');
});
it('does not emojify emojis with textual presentation VS15 character', () => {
@@ -81,17 +81,17 @@ describe('emoji', () => {
it('does a simple emoji properly', () => {
expect(emojify('โโ'))
- .toEqual('
');
});
it('does an emoji containing ZWJ properly', () => {
expect(emojify('๐โโ๏ธ๐โโ๏ธ'))
- .toEqual('
');
});
it('keeps ordering as expected (issue fixed by PR 20677)', () => {
expect(emojify('
๐ #foo test: foo.
')) - .toEqual(' #foo test: foo.