From c729965b693f6c0049919d980645aa3001678ff1 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 19 Feb 2014 11:13:26 -0500 Subject: [PATCH] Test negated topic searches in Filter.unparse (imported from commit 0e1e74b25b7eb1874b93dd7d62e50563caff1ebe) --- zerver/tests/frontend/node/filter.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zerver/tests/frontend/node/filter.js b/zerver/tests/frontend/node/filter.js index 1ff64c813d..8d1627bf11 100644 --- a/zerver/tests/frontend/node/filter.js +++ b/zerver/tests/frontend/node/filter.js @@ -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 = [