about summary refs log tree commit diff
path: root/spec/javascript/components/emoji_index.test.js
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-10-07 03:17:02 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-10-07 12:17:02 +0200
commit057db0ecd0049c76c113cbe5412e098d686f0700 (patch)
tree0079a13c4b50d505554a1412f9459091b005f8b1 /spec/javascript/components/emoji_index.test.js
parent11436358b4091c58532603adcd0f8b9d2e9e7775 (diff)
Update emoji-mart to v2.1.1 (#5256)
Diffstat (limited to 'spec/javascript/components/emoji_index.test.js')
-rw-r--r--spec/javascript/components/emoji_index.test.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/javascript/components/emoji_index.test.js b/spec/javascript/components/emoji_index.test.js
index 07d26a685..cdb50cb8c 100644
--- a/spec/javascript/components/emoji_index.test.js
+++ b/spec/javascript/components/emoji_index.test.js
@@ -100,7 +100,12 @@ describe('emoji_index', () => {
   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);
+    expect(emojiIndex.search('thinking_fac').map(trimEmojis)).to.deep.equal(expected);
+  });
+
+  it('can search for woman-facepalming', () => {
+    let expected = [ { id: 'woman-facepalming', unified: '1f926-200d-2640-fe0f', native: '🤦‍♀️' } ];
+    expect(search('woman-facep').map(trimEmojis)).to.deep.equal(expected);
+    expect(emojiIndex.search('woman-facep').map(trimEmojis)).deep.equal(expected);
   });
 });