From 1c4dcda639dbe7892080f3ae6befccfab13bee58 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 19 Feb 2014 10:25:51 -0500 Subject: [PATCH] Add test for in-home search when in our special narrow mode. (imported from commit e6bc9fbd7b87377c7ed1d42e84a9b5cd369bb4fe) --- zerver/tests/frontend/node/filter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zerver/tests/frontend/node/filter.js b/zerver/tests/frontend/node/filter.js index 2653ff0e0d..ac9b13d8e4 100644 --- a/zerver/tests/frontend/node/filter.js +++ b/zerver/tests/frontend/node/filter.js @@ -193,6 +193,8 @@ function get_predicate(operators) { predicate = get_predicate([['in', 'home']]); assert(!predicate({stream: 'unsub'})); assert(predicate({type: 'private'})); + global.page_params.narrow_stream = 'kiosk'; + assert(predicate({stream: 'kiosk'})); predicate = get_predicate([['near', 5]]); assert(predicate({}));