Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Use override in echo.js.
Steve Howell2ad879cddae7
diff --git a/frontend_tests/node_tests/echo.js b/frontend_tests/node_tests/echo.jsindex 7139ffbb2d1..8fefbf6081c 100644--- a/frontend_tests/node_tests/echo.js+++ b/frontend_tests/node_tests/echo.js@@ -175,7 +175,7 @@ run_test("build_display_recipient", () => {assert.equal(iago.id, 123);});-run_test("insert_local_message", () => {+run_test("insert_local_message", (override) => {const local_id_float = 1;page_params.user_id = 123;@@ -196,13 +196,13 @@ run_test("insert_local_message", () => {let add_topic_links_called = false;let insert_message_called = false;- markdown.apply_markdown = () => {+ override(markdown, "apply_markdown", () => {apply_markdown_called = true;- };+ });- markdown.add_topic_links = () => {+ override(markdown, "add_topic_links", () => {add_topic_links_called = true;- };+ });local_message.insert_message = (message) => {assert.equal(message.display_recipient, "general");