Add filter tests for is:alerted predicate

(imported from commit 077fdab5437f498f015da7ed81a77036c9ff6361)
This commit is contained in:
Steve Howell 2013-09-10 11:08:16 -04:00
parent f70e899518
commit 5bcc403ea4
1 changed files with 5 additions and 0 deletions

View File

@ -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}));