mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
node tests: Clean up mock_module calls.
This is a deceptively ugly diff. It makes the actual code way more tidy. I basically inlined some calls to mock_module and put some statements in lexical order.
This commit is contained in:
committed by
Steve Howell
parent
7cf62cd6b1
commit
eea78df688
@@ -57,13 +57,11 @@ const typing_events = mock_module("typing_events");
|
||||
const ui = mock_module("ui");
|
||||
const unread_ops = mock_module("unread_ops");
|
||||
const user_events = mock_module("user_events");
|
||||
const user_groups = mock_module("user_groups");
|
||||
mock_module("compose");
|
||||
set_global("current_msg_list", {});
|
||||
set_global("home_msg_list", {});
|
||||
|
||||
const user_groups = {};
|
||||
|
||||
mock_module("user_groups", user_groups);
|
||||
// page_params is highly coupled to dispatching now
|
||||
|
||||
const page_params = set_global("page_params", {
|
||||
|
||||
Reference in New Issue
Block a user