mirror of https://github.com/zulip/zulip.git
node tests: Add coverage for add_subject_links.
This commit is contained in:
parent
ae67f9044d
commit
97a07f311e
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue