mirror of https://github.com/zulip/zulip.git
Test negated topic searches in Filter.unparse
(imported from commit 0e1e74b25b7eb1874b93dd7d62e50563caff1ebe)
This commit is contained in:
parent
b67d976809
commit
c729965b69
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue