node_tests: Remove unnecessary zrequire calls for ES6 modules.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-25 19:21:37 -08:00
committed by Tim Abbott
parent 8947ff10a4
commit 7c860caffc
4 changed files with 0 additions and 7 deletions

View File

@@ -35,7 +35,6 @@ set_global("top_left_corner", {
}); });
const people = zrequire("people"); const people = zrequire("people");
zrequire("localstorage");
const hash_util = zrequire("hash_util"); const hash_util = zrequire("hash_util");
const hashchange = zrequire("hashchange"); const hashchange = zrequire("hashchange");
const stream_data = zrequire("stream_data"); const stream_data = zrequire("stream_data");

View File

@@ -165,7 +165,6 @@ set_global("stream_data", {
zrequire("message_util"); zrequire("message_util");
zrequire("narrow_state"); zrequire("narrow_state");
zrequire("localstorage");
const people = zrequire("people"); const people = zrequire("people");
let rt = zrequire("recent_topics"); let rt = zrequire("recent_topics");

View File

@@ -129,7 +129,6 @@ const messages = {
// This is an example of a deep unit test, where our dependencies // This is an example of a deep unit test, where our dependencies
// are easy to test. Start by requiring the dependencies: // are easy to test. Start by requiring the dependencies:
zrequire("recent_senders"); zrequire("recent_senders");
zrequire("localstorage");
const unread = zrequire("unread"); const unread = zrequire("unread");
const stream_topic_history = zrequire("stream_topic_history"); const stream_topic_history = zrequire("stream_topic_history");
const recent_topics = zrequire("recent_topics"); const recent_topics = zrequire("recent_topics");

View File

@@ -123,16 +123,12 @@ rewiremock.proxy(() => zrequire("notifications"), {
"../../static/js/favicon": {}, "../../static/js/favicon": {},
}); });
zrequire("pm_list"); zrequire("pm_list");
zrequire("list_cursor");
zrequire("localstorage");
zrequire("keydown_util"); zrequire("keydown_util");
zrequire("stream_list"); zrequire("stream_list");
zrequire("topic_list"); zrequire("topic_list");
zrequire("sent_messages"); zrequire("sent_messages");
zrequire("top_left_corner"); zrequire("top_left_corner");
zrequire("starred_messages"); zrequire("starred_messages");
zrequire("user_status");
zrequire("user_status_ui");
zrequire("recent_topics"); zrequire("recent_topics");
run_test("initialize_everything", () => { run_test("initialize_everything", () => {