From 55a862cc2334d7a27a7d19b21a70fa1a54a47e06 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 19 Feb 2014 11:15:51 -0500 Subject: [PATCH] Test that narrow_stream is excluded from filter.public_operators() (imported from commit 11c38d7108243f1496262a2cce982ec583c41894) --- zerver/tests/frontend/node/filter.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zerver/tests/frontend/node/filter.js b/zerver/tests/frontend/node/filter.js index 8d1627bf11..ebb81b0305 100644 --- a/zerver/tests/frontend/node/filter.js +++ b/zerver/tests/frontend/node/filter.js @@ -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() {