mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
node_tests: Don’t read from most deprecated global variables.
We still need to write to these globals with set_global because the code being tested reads from them, but the tests themselves should never need to read from them. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -13,17 +13,17 @@ set_global("page_params", {
|
||||
is_guest: false,
|
||||
});
|
||||
|
||||
zrequire("color_data");
|
||||
const color_data = zrequire("color_data");
|
||||
zrequire("hash_util");
|
||||
zrequire("stream_topic_history");
|
||||
const stream_topic_history = zrequire("stream_topic_history");
|
||||
const people = zrequire("people");
|
||||
zrequire("stream_color");
|
||||
zrequire("stream_data");
|
||||
const stream_color = zrequire("stream_color");
|
||||
const stream_data = zrequire("stream_data");
|
||||
zrequire("FetchStatus", "js/fetch_status");
|
||||
zrequire("Filter", "js/filter");
|
||||
zrequire("MessageListData", "js/message_list_data");
|
||||
zrequire("MessageListView", "js/message_list_view");
|
||||
zrequire("message_list");
|
||||
const message_list = zrequire("message_list");
|
||||
const settings_config = zrequire("settings_config");
|
||||
|
||||
const me = {
|
||||
|
||||
Reference in New Issue
Block a user