mirror of https://github.com/zulip/zulip.git
Add filter tests for is:alerted predicate
(imported from commit 077fdab5437f498f015da7ed81a77036c9ff6361)
This commit is contained in:
parent
f70e899518
commit
5bcc403ea4
|
@ -86,6 +86,11 @@ function get_predicate(operators) {
|
|||
assert(predicate({starred: true}));
|
||||
assert(!predicate({starred: false}));
|
||||
|
||||
predicate = get_predicate([['is', 'alerted']]);
|
||||
assert(predicate({alerted: true}));
|
||||
assert(!predicate({alerted: false}));
|
||||
assert(!predicate({}));
|
||||
|
||||
predicate = get_predicate([['is', 'mentioned']]);
|
||||
assert(predicate({mentioned: true}));
|
||||
assert(!predicate({mentioned: false}));
|
||||
|
|
Loading…
Reference in New Issue