Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
topic_list_data test: Avoid mocking message_store.
apoorvapendsee2eeb1a6669c
diff --git a/web/tests/topic_list_data.test.cjs b/web/tests/topic_list_data.test.cjsindex 0b9f0e95b68..c004e20ea01 100644--- a/web/tests/topic_list_data.test.cjs+++ b/web/tests/topic_list_data.test.cjs@@ -8,14 +8,16 @@ const {make_realm} = require("./lib/example_realm.cjs");const {mock_esm, zrequire} = require("./lib/namespace.cjs");const {run_test} = require("./lib/test.cjs");-mock_esm("../src/message_store", {- get() {- return {+const message_store = zrequire("message_store");+message_store.set_messages_for_tests([+ {+ message: {stream_id: 556,topic: "general",- };+ },},-});+]);+const user_topics = mock_esm("../src/user_topics", {is_topic_muted() {return false;