mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +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);
|
filter = new Filter(operators);
|
||||||
assert_same_operators(filter.public_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() {
|
(function test_canonicalizations() {
|
||||||
|
|||||||
Reference in New Issue
Block a user