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

This commit is contained in:
Aman Agrawal 2024-09-20 12:55:49 +00:00 committed by Tim Abbott
parent 3d875bd140
commit 56d4bad92b
1 changed files with 1 additions and 0 deletions

View File

@ -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());