node tests: Add coverage for add_subject_links.

This commit is contained in:
Yago González 2017-06-13 23:26:06 +02:00 committed by showell
parent ae67f9044d
commit 97a07f311e
1 changed files with 4 additions and 0 deletions

View File

@ -282,6 +282,10 @@ var bugdown_data = JSON.parse(fs.readFileSync(path.join(__dirname, '../../zerver
markdown.add_subject_links(message);
assert.equal(message.subject_links.length, 1);
assert.equal(message.subject_links[0], "https://zone_45.zulip.net/ticket/123");
message = {type: "not-stream"};
markdown.add_subject_links(message);
assert.equal(message.subject_links.length, 0);
}());
(function test_message_flags() {