From 38eb3f57644f8621d184e5e5e1d3d636a19dbed1 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Tue, 19 Apr 2022 16:17:50 -0700 Subject: [PATCH] typeahead tests: Add more Unicode emoji to the test data. We'll use these in upcoming tests. --- frontend_tests/node_tests/typeahead.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend_tests/node_tests/typeahead.js b/frontend_tests/node_tests/typeahead.js index 0d34a8153c..2a2279c992 100644 --- a/frontend_tests/node_tests/typeahead.js +++ b/frontend_tests/node_tests/typeahead.js @@ -10,6 +10,13 @@ const typeahead = zrequire("../shared/js/typeahead"); const unicode_emojis = [ ["1f43c", "panda_face"], ["1f642", "smile"], + ["1f604", "big_smile"], + ["1f368", "ice_cream"], + ["1f366", "soft_ice_cream"], + ["1f6a5", "horizontal_traffic_light"], + ["1f6a6", "traffic_light"], + ["1f537", "large_blue_diamond"], + ["1f539", "small_blue_diamond"], ]; const emojis = [ @@ -39,8 +46,8 @@ run_test("get_emoji_matcher", () => { assert_matches("da", ["panda_face", "tada"]); assert_matches("panda ", ["panda_face"]); - assert_matches("smil", ["smile"]); - assert_matches("mile", ["smile"]); + assert_matches("smil", ["big_smile", "smile"]); + assert_matches("mile", ["big_smile", "smile"]); assert_matches("japanese_post_", ["japanese_post_office"]); assert_matches("japanese post ", ["japanese_post_office"]);