From 91de92ce2f620c4f1ce8856770424fdffd7499fb Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sat, 25 Jul 2020 22:47:37 +0000 Subject: [PATCH] ui_init test: Test with real emoji.js. --- frontend_tests/node_tests/ui_init.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend_tests/node_tests/ui_init.js b/frontend_tests/node_tests/ui_init.js index 9565d1f527..ecab8005bf 100644 --- a/frontend_tests/node_tests/ui_init.js +++ b/frontend_tests/node_tests/ui_init.js @@ -39,7 +39,6 @@ const ignore_modules = [ "compose_pm_pill", "copy_and_paste", "drafts", - "emoji", "emoji_picker", "gear_menu", "hashchange", @@ -68,8 +67,6 @@ for (const mod of ignore_modules) { }); } -emoji.emojis_by_name = new Map(); - util.is_mobile = () => false; global.stub_templates(() => "some-html"); ui.get_scroll_element = (element) => element; @@ -77,6 +74,7 @@ ui.get_scroll_element = (element) => element; zrequire("alert_words"); zrequire("hash_util"); zrequire("echo"); +zrequire("emoji"); zrequire("colorspace"); zrequire("stream_color"); zrequire("stream_edit"); @@ -152,6 +150,7 @@ page_params.unread_msgs = { }; page_params.recent_private_conversations = []; page_params.user_status = {}; +page_params.realm_emoji = {}; page_params.realm_users = []; page_params.realm_non_active_users = []; page_params.cross_realm_bots = [];