mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
node tests: Test missing timestamp does nothing.
This commit is contained in:
@@ -174,6 +174,15 @@ run_test("stream-links", () => {
|
|||||||
assert.equal($stream_topic.text(), `#${stream.name} > topic name > still the topic name`);
|
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", () => {
|
run_test("timestamp", () => {
|
||||||
// Setup
|
// Setup
|
||||||
const $content = get_content_element();
|
const $content = get_content_element();
|
||||||
|
|||||||
Reference in New Issue
Block a user