diff options
author | Nolan Lawson <nolan@nolanlawson.com> | 2017-10-06 03:03:13 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-06 12:03:13 +0200 |
commit | 72d939b69fca9443038d89815ca5356319f42c43 (patch) | |
tree | 23f66df7119610df926034de05263be660f1f5bc /spec/javascript/components | |
parent | 97b3d0cd567ff5b38343796a5e662087bd45d710 (diff) |
Fix thinking_face emoji autocomplete (#5238)
Diffstat (limited to 'spec/javascript/components')
-rw-r--r-- | spec/javascript/components/emoji_index.test.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/javascript/components/emoji_index.test.js b/spec/javascript/components/emoji_index.test.js index 4bff79265..07d26a685 100644 --- a/spec/javascript/components/emoji_index.test.js +++ b/spec/javascript/components/emoji_index.test.js @@ -96,4 +96,11 @@ describe('emoji_index', () => { expect(search('polo').map(trimEmojis)).to.deep.equal(expected); expect(emojiIndex.search('polo').map(trimEmojis)).to.deep.equal(expected); }); + + it('can search for thinking_face', () => { + let expected = [ { id: 'thinking_face', unified: '1f914', native: '🤔' } ]; + expect(search('thinking_fac').map(trimEmojis)).to.deep.equal(expected); + // this is currently broken in emoji-mart + // expect(emojiIndex.search('thinking_fac').map(trimEmojis)).to.deep.equal(expected); + }); }); |