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.

typeahead: Fix message_type to correctly test stream mention typeahead.

Prakhar Pratyush5ec26c65428b
diff --git a/web/tests/composebox_typeahead.test.js b/web/tests/composebox_typeahead.test.js
index 07ac4279418..b85c8c5823c 100644
--- a/web/tests/composebox_typeahead.test.js
+++ b/web/tests/composebox_typeahead.test.js
@@ -63,6 +63,7 @@ const ct = composebox_typeahead;
ct.__Rewire__("max_num_items", 15);
run_test("verify wildcard mentions typeahead for stream message", () => {
+ compose_state.set_message_type("stream");
const mention_all = ct.broadcast_mentions()[0];
const mention_everyone = ct.broadcast_mentions()[1];
const mention_stream = ct.broadcast_mentions()[2];