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:
Steve Howell
2021-03-07 12:57:14 +00:00
committed by Steve Howell
parent 7cf62cd6b1
commit eea78df688
45 changed files with 345 additions and 496 deletions

View File

@@ -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", {