mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
Test negated topic searches in Filter.unparse
(imported from commit 0e1e74b25b7eb1874b93dd7d62e50563caff1ebe)
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user