Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Test missing timestamp does nothing.
Steve Howell1e8e0acd6b80
diff --git a/frontend_tests/node_tests/rendered_markdown.js b/frontend_tests/node_tests/rendered_markdown.jsindex ffc0cf3938c..b47c6cd6b45 100644--- a/frontend_tests/node_tests/rendered_markdown.js+++ b/frontend_tests/node_tests/rendered_markdown.js@@ -174,6 +174,15 @@ run_test("stream-links", () => {assert.equal($stream_topic.text(), `#${stream.name} > topic name > still the topic name`);});+run_test("timestamp without time", () => {+ const $content = get_content_element();+ const $timestamp = $.create("timestampe without actual time");+ $content.set_find_results("time", $array([$timestamp]));++ rm.update_elements($content);+ assert.equal($timestamp.text(), "never-been-set");+});+run_test("timestamp", () => {// Setupconst $content = get_content_element();