mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
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)
This commit is contained in:
parent
d0be30ab08
commit
b3ebb13469
@ -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'}));
|
||||
|
||||
}());
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user