summaryrefslogtreecommitdiffstats
path: root/webapp/tests/emoticons.test.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-02-28 20:21:10 -0500
committerenahum <nahumhbl@gmail.com>2017-02-28 22:21:10 -0300
commitdaef8d83840460757222699c2d512c66e34432c1 (patch)
tree2f9eac26812172aeeb053c1cb39885766f5a4bd6 /webapp/tests/emoticons.test.jsx
parentfc9e5d8510a26d6b4a89b45f5b8b2779d82f62a9 (diff)
downloadchat-daef8d83840460757222699c2d512c66e34432c1.tar.gz
chat-daef8d83840460757222699c2d512c66e34432c1.tar.bz2
chat-daef8d83840460757222699c2d512c66e34432c1.zip
Added a unique prefix to text formatting entities (#5549)
Diffstat (limited to 'webapp/tests/emoticons.test.jsx')
-rw-r--r--webapp/tests/emoticons.test.jsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/webapp/tests/emoticons.test.jsx b/webapp/tests/emoticons.test.jsx
index bf025e6b2..b6ca0512d 100644
--- a/webapp/tests/emoticons.test.jsx
+++ b/webapp/tests/emoticons.test.jsx
@@ -14,25 +14,25 @@ describe('Emoticons', function() {
assert.equal(
Emoticons.handleEmoticons(':goat: :dash:', new Map(), emojis),
- 'MM_EMOTICON0 MM_EMOTICON1',
+ '$MM_EMOTICON0 $MM_EMOTICON1',
'should replace emoticons with tokens'
);
assert.equal(
Emoticons.handleEmoticons(':goat::dash:', new Map(), emojis),
- 'MM_EMOTICON0MM_EMOTICON1',
+ '$MM_EMOTICON0$MM_EMOTICON1',
'should replace emoticons not separated by whitespace'
);
assert.equal(
Emoticons.handleEmoticons('/:goat:..:dash:)', new Map(), emojis),
- '/MM_EMOTICON0..MM_EMOTICON1)',
+ '/$MM_EMOTICON0..$MM_EMOTICON1)',
'should replace emoticons separated by punctuation'
);
assert.equal(
Emoticons.handleEmoticons('asdf:goat:asdf:dash:asdf', new Map(), emojis),
- 'asdfMM_EMOTICON0asdfMM_EMOTICON1asdf',
+ 'asdf$MM_EMOTICON0asdf$MM_EMOTICON1asdf',
'should replace emoticons separated by text'
);