Test negated topic searches in Filter.unparse

(imported from commit 0e1e74b25b7eb1874b93dd7d62e50563caff1ebe)
This commit is contained in:
Steve Howell 2014-02-19 11:13:26 -05:00
parent b67d976809
commit c729965b69
1 changed files with 3 additions and 2 deletions

View File

@ -344,12 +344,13 @@ function get_predicate(operators) {
var string;
var operators;
global.feature_flags.negated_search = true;
operators = [
{operator: 'stream', operand: 'Foo'},
{operator: 'topic', operand: 'Bar'},
{operator: 'topic', operand: 'Bar', negated: true},
{operator: 'search', operand: 'yo'}
];
string = 'stream:Foo topic:Bar yo';
string = 'stream:Foo -topic:Bar yo';
assert.deepEqual(Filter.unparse(operators), string);
operators = [