Test that narrow_stream is excluded from filter.public_operators()

(imported from commit 11c38d7108243f1496262a2cce982ec583c41894)
This commit is contained in:
Steve Howell
2014-02-19 11:15:51 -05:00
parent c729965b69
commit 55a862cc23

View File

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