Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Make sure we try to find container in pm_list.
Steve Howelld34723987fa7
diff --git a/frontend_tests/node_tests/pm_list.js b/frontend_tests/node_tests/pm_list.jsindex 09e81ccb565..d4ffffc5b76 100644--- a/frontend_tests/node_tests/pm_list.js+++ b/frontend_tests/node_tests/pm_list.js@@ -248,15 +248,17 @@ run_test("expand", (override) => {});run_test("update_private_messages", (override) => {+ let html_updated;+ let container_found;+override(narrow_state, "active", () => true);+ override(pm_list, "_build_private_messages_list", () => "PM_LIST_CONTENTS");$("#private-container").find = (sel) => {assert.equal(sel, "ul");+ container_found = true;};- override(pm_list, "_build_private_messages_list", () => "PM_LIST_CONTENTS");-- let html_updated;override(vdom, "update", (replace_content, find) => {html_updated = true;@@ -267,6 +269,7 @@ run_test("update_private_messages", (override) => {pm_list.update_private_messages();assert(html_updated);+ assert(container_found);});run_test("ensure coverage", (override) => {