Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Test bogus user group id.
Steve Howell69c92e9beebd
diff --git a/frontend_tests/node_tests/rendered_markdown.js b/frontend_tests/node_tests/rendered_markdown.jsindex b47c6cd6b45..6c8ea50ddbd 100644--- a/frontend_tests/node_tests/rendered_markdown.js+++ b/frontend_tests/node_tests/rendered_markdown.js@@ -150,6 +150,17 @@ run_test("user-group-mention", () => {assert.equal($group_other.text(), `@${group_other.name}`);});+run_test("user-group-mention (error)", () => {+ const $content = get_content_element();+ const $group = $.create(".user-group-mention(bogus)");+ $group.attr("data-user-group-id", "not-even-a-number");+ $content.set_find_results(".user-group-mention", $array([$group]));++ rm.update_elements($content);++ assert(!$group.hasClass("user-mention-me"));+});+run_test("stream-links", () => {// Setupconst $content = get_content_element();