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.

filter: Fix filter variable not updated as per new terms.

Aman Agrawal56d4bad92bea
diff --git a/web/tests/filter.test.js b/web/tests/filter.test.js
index a2f4feb9b5d..9f243586f92 100644
--- a/web/tests/filter.test.js
+++ b/web/tests/filter.test.js
@@ -134,6 +134,7 @@ test("basics", () => {
// "stream" was renamed to "channel"
terms = [{operator: "stream", operand: foo_stream_id.toString()}];
+ filter = new Filter(terms);
assert.ok(filter.has_operator("channel"));
assert.deepEqual(filter.operands("channel"), [foo_stream_id.toString()]);
assert.ok(filter.includes_full_stream_history());