Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typeahead_helper: Add test for compare_by_pms for missing codecov.

evykassirer1d16fdd7b920
diff --git a/web/tests/typeahead_helper.test.js b/web/tests/typeahead_helper.test.js
index bad7301e1b1..2b5cdf512c5 100644
--- a/web/tests/typeahead_helper.test.js
+++ b/web/tests/typeahead_helper.test.js
@@ -900,3 +900,9 @@ test("compare_language", () => {
// score, then alphabetical order is used to break the tie.
assert.equal(th.compare_language("custom_a", "custom_b"), util.strcmp("custom_a", "custom_b"));
});
+
+// TODO: This is incomplete for testing this function, and
+// should be filled out more. This case was added for codecov.
+test("compare_by_pms", () => {
+ assert.equal(th.compare_by_pms(a_user, a_user), 0);
+});