Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

node tests: Clean up hotkey mock_esm calls.

Steve Howellc40dfaa616f9
diff --git a/frontend_tests/node_tests/hotkey.js b/frontend_tests/node_tests/hotkey.js
index 49cc2389ae2..1edda8061a9 100644
--- a/frontend_tests/node_tests/hotkey.js
+++ b/frontend_tests/node_tests/hotkey.js
@@ -77,17 +77,6 @@ const search = mock_esm("../../static/js/search");
const stream_list = mock_esm("../../static/js/stream_list");
const subs = mock_esm("../../static/js/subs");
-mock_esm("../../static/js/hashchange", {
- in_recent_topics_hash: () => false,
-});
-
-mock_esm("../../static/js/stream_popover", {
- stream_popped: () => false,
- topic_popped: () => false,
- all_messages_popped: () => false,
- starred_messages_popped: () => false,
-});
-
mock_esm("../../static/js/hotspots", {
is_open: () => false,
});
@@ -97,6 +86,13 @@ mock_esm("../../static/js/recent_topics", {
is_in_focus: () => false,
});
+mock_esm("../../static/js/stream_popover", {
+ stream_popped: () => false,
+ topic_popped: () => false,
+ all_messages_popped: () => false,
+ starred_messages_popped: () => false,
+});
+
message_lists.current = {
empty() {
return false;