From 1d16fdd7b92074b494261448aa2ed418edaec83c Mon Sep 17 00:00:00 2001 From: evykassirer Date: Tue, 16 Apr 2024 17:30:04 -0700 Subject: [PATCH] typeahead_helper: Add test for compare_by_pms for missing codecov. --- web/tests/typeahead_helper.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/tests/typeahead_helper.test.js b/web/tests/typeahead_helper.test.js index bad7301e1b..2b5cdf512c 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); +});