Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node_tests: Remove unnecessary zrequire calls for ES6 modules.
Anders Kaseorg7c860caffcd4
diff --git a/frontend_tests/node_tests/hashchange.js b/frontend_tests/node_tests/hashchange.jsindex 6a5e625168f..b1220f92fbb 100644--- a/frontend_tests/node_tests/hashchange.js+++ b/frontend_tests/node_tests/hashchange.js@@ -35,7 +35,6 @@ set_global("top_left_corner", {});const people = zrequire("people");-zrequire("localstorage");const hash_util = zrequire("hash_util");const hashchange = zrequire("hashchange");const stream_data = zrequire("stream_data");diff --git a/frontend_tests/node_tests/recent_topics.js b/frontend_tests/node_tests/recent_topics.jsindex 14b719839cd..22a11fd9941 100644--- a/frontend_tests/node_tests/recent_topics.js+++ b/frontend_tests/node_tests/recent_topics.js@@ -165,7 +165,6 @@ set_global("stream_data", {zrequire("message_util");zrequire("narrow_state");-zrequire("localstorage");const people = zrequire("people");let rt = zrequire("recent_topics");diff --git a/frontend_tests/node_tests/tutorial.js b/frontend_tests/node_tests/tutorial.jsindex 1fdca18ecbc..8eb919efcf5 100644--- a/frontend_tests/node_tests/tutorial.js+++ b/frontend_tests/node_tests/tutorial.js@@ -129,7 +129,6 @@ const messages = {// This is an example of a deep unit test, where our dependencies// are easy to test. Start by requiring the dependencies:zrequire("recent_senders");-zrequire("localstorage");const unread = zrequire("unread");const stream_topic_history = zrequire("stream_topic_history");const recent_topics = zrequire("recent_topics");diff --git a/frontend_tests/node_tests/ui_init.js b/frontend_tests/node_tests/ui_init.jsindex 4a6ac629dd9..5998f6347a6 100644--- a/frontend_tests/node_tests/ui_init.js+++ b/frontend_tests/node_tests/ui_init.js@@ -123,16 +123,12 @@ rewiremock.proxy(() => zrequire("notifications"), {"../../static/js/favicon": {},});zrequire("pm_list");-zrequire("list_cursor");-zrequire("localstorage");zrequire("keydown_util");zrequire("stream_list");zrequire("topic_list");zrequire("sent_messages");zrequire("top_left_corner");zrequire("starred_messages");-zrequire("user_status");-zrequire("user_status_ui");zrequire("recent_topics");run_test("initialize_everything", () => {