Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tests: Replace manual stream object with make_stream in stream_topic_history tests.

Tanuj kinkar474262199113
diff --git a/web/tests/stream_topic_history.test.cjs b/web/tests/stream_topic_history.test.cjs
index d3a61093f94..963631b6280 100644
--- a/web/tests/stream_topic_history.test.cjs
+++ b/web/tests/stream_topic_history.test.cjs
@@ -3,6 +3,7 @@
const assert = require("node:assert/strict");
const {make_realm} = require("./lib/example_realm.cjs");
+const {make_stream} = require("./lib/test_helpers.cjs");
const {mock_esm, set_global, zrequire} = require("./lib/namespace.cjs");
const {run_test, noop} = require("./lib/test.cjs");
@@ -130,10 +131,10 @@ test("basics", () => {
});
test("server_history", () => {
- const sub = {
+ const sub = make_stream({
name: "devel",
stream_id: 66,
- };
+ });
const stream_id = sub.stream_id;
stream_data.add_sub_for_tests(sub);