aboutsummaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-09-08 21:18:05 +0300
committerHenry Jameson <me@hjkos.com>2019-09-08 21:18:52 +0300
commit9146bee7aa7229f041bcc77814d9fa40809329a6 (patch)
tree79c8595eb57d8ab554085c3b851db0cfd0536bf2 /test/unit
parent7360a4d9efe278aef672e96320f7161ad4f0d0f2 (diff)
better hitbox for status emoji
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
index 20e03cb0..24aef5cd 100644
--- a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
+++ b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
@@ -323,9 +323,9 @@ describe('API Entities normalizer', () => {
describe('MastoAPI emoji adder', () => {
const emojis = makeMockEmojiMasto()
- const imageHtml = '<img src="https://example.com/image.png" alt="image" title="image" class="emoji" />'
+ const imageHtml = '<span class="emoji-container"><img src="https://example.com/image.png" alt="image" title="image" class="emoji" /></span>'
.replace(/"/g, '\'')
- const thinkHtml = '<img src="https://example.com/think.png" alt="thinking" title="thinking" class="emoji" />'
+ const thinkHtml = '<span class="emoji-container"><img src="https://example.com/think.png" alt="thinking" title="thinking" class="emoji" /></span>'
.replace(/"/g, '\'')
it('correctly replaces shortcodes in supplied string', () => {