From b3ebb13469fa6dc9e3900bd387c47bb1e1781874 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 23 Aug 2013 14:06:57 -0400 Subject: [PATCH] Remove some ".d" suffixes in predicate tests. I was saying bar.d in places where I wasn't really specifically testing the .d feature, and it was distracting and just an unintentional consequence of copy/paste. (imported from commit 7b137b28cb33c72b83f02fe1d2961c5c6accc263) --- zerver/tests/frontend/node/filter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zerver/tests/frontend/node/filter.js b/zerver/tests/frontend/node/filter.js index ecc9e85156..38d5f2b431 100644 --- a/zerver/tests/frontend/node/filter.js +++ b/zerver/tests/frontend/node/filter.js @@ -130,11 +130,11 @@ function get_predicate(operators) { // Try to get the MIT regex to explode for an empty stream. predicate = get_predicate([['stream', ''], ['topic', 'bar']]); - assert(!predicate({type: 'stream', stream: 'foo', subject: 'bar.d'})); + assert(!predicate({type: 'stream', stream: 'foo', subject: 'bar'})); // Try to get the MIT regex to explode for an empty topic. predicate = get_predicate([['stream', 'foo'], ['topic', '']]); - assert(!predicate({type: 'stream', stream: 'foo', subject: 'bar.d'})); + assert(!predicate({type: 'stream', stream: 'foo', subject: 'bar'})); }()); (function test_predicate_edge_cases() { @@ -159,7 +159,7 @@ function get_predicate(operators) { var filter = new Filter([['stream', 'Foo'], ['topic', 'bar']]); predicate = filter.predicate(); predicate = filter.predicate(); // get cached version - assert(predicate({type: 'stream', stream: 'foo', subject: 'bar.d'})); + assert(predicate({type: 'stream', stream: 'foo', subject: 'bar'})); }());