node tests: Clean up hotkey mock_esm calls.

I removed an unnecessary call and put another one in
in lexical order.
This commit is contained in:
Steve Howell 2021-04-03 19:08:07 +00:00 committed by Steve Howell
parent 902e0f7e95
commit c40dfaa616
1 changed files with 7 additions and 11 deletions

View File

@ -77,17 +77,6 @@ const search = mock_esm("../../static/js/search");
const stream_list = mock_esm("../../static/js/stream_list"); const stream_list = mock_esm("../../static/js/stream_list");
const subs = mock_esm("../../static/js/subs"); 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", { mock_esm("../../static/js/hotspots", {
is_open: () => false, is_open: () => false,
}); });
@ -97,6 +86,13 @@ mock_esm("../../static/js/recent_topics", {
is_in_focus: () => false, 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 = { message_lists.current = {
empty() { empty() {
return false; return false;