mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 10:03:56 +00:00
Test that narrow_stream is excluded from filter.public_operators()
(imported from commit 11c38d7108243f1496262a2cce982ec583c41894)
This commit is contained in:
@@ -106,6 +106,13 @@ function assert_same_operators(result, terms) {
|
||||
];
|
||||
filter = new Filter(operators);
|
||||
assert_same_operators(filter.public_operators(), []);
|
||||
|
||||
global.page_params.narrow_stream = 'default';
|
||||
operators = [
|
||||
{operator: 'stream', operand: 'default'}
|
||||
];
|
||||
filter = new Filter(operators);
|
||||
assert_same_operators(filter.public_operators(), []);
|
||||
}());
|
||||
|
||||
(function test_canonicalizations() {
|
||||
|
||||
Reference in New Issue
Block a user