mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +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:
@@ -7,10 +7,10 @@ const {run_test} = require("../zjsunit/test");
|
||||
|
||||
zrequire("unread");
|
||||
zrequire("unread_ops");
|
||||
zrequire("message_flags");
|
||||
const message_flags = zrequire("message_flags");
|
||||
|
||||
set_global("ui", {});
|
||||
set_global("channel", {});
|
||||
const ui = set_global("ui", {});
|
||||
const channel = set_global("channel", {});
|
||||
set_global("starred_messages", {
|
||||
add: () => {},
|
||||
remove: () => {},
|
||||
|
||||
Reference in New Issue
Block a user