typeahead_helper: Add test for compare_by_pms for missing codecov.

This commit is contained in:
evykassirer 2024-04-16 17:30:04 -07:00 committed by Tim Abbott
parent 6264bf3b76
commit 1d16fdd7b9
1 changed files with 6 additions and 0 deletions

View File

@ -900,3 +900,9 @@ test("compare_language", () => {
// score, then alphabetical order is used to break the tie. // 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")); 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);
});