mirror of https://github.com/zulip/zulip.git
Add test for in-home search when in our special narrow mode.
(imported from commit e6bc9fbd7b87377c7ed1d42e84a9b5cd369bb4fe)
This commit is contained in:
parent
187796c3d4
commit
1c4dcda639
|
@ -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({}));
|
||||
|
|
Loading…
Reference in New Issue