mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
Remove unused util.recipient_key() function.
(imported from commit cee6a58344971ee1439e6b66ec301f1bd0f80502)
This commit is contained in:
committed by
Leo Franchi
parent
50bc5401a4
commit
0e129614cf
@@ -67,20 +67,6 @@ var util = global.util;
|
||||
));
|
||||
}());
|
||||
|
||||
(function test_recipient_key() {
|
||||
var message;
|
||||
|
||||
message = {type: 'stream', stream: 'Foo', subject: 'BAR'};
|
||||
assert.equal(util.recipient_key(message), 'foo>bar');
|
||||
|
||||
global.$.trim = function (s) {
|
||||
return s.trim();
|
||||
};
|
||||
message = {type: 'private', reply_to: ' bob@example.com, alice@example.com '};
|
||||
assert.equal(util.recipient_key(message), 'alice@example.com,bob@example.com');
|
||||
|
||||
}());
|
||||
|
||||
(function test_robust_uri_decode() {
|
||||
assert.equal(util.robust_uri_decode('xxx%3Ayyy'), 'xxx:yyy');
|
||||
assert.equal(util.robust_uri_decode('xxx%3'), 'xxx');
|
||||
|
||||
Reference in New Issue
Block a user