Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
people: Add test coverage for people matching with user id.
Aman Agrawalf426aa089bb9
diff --git a/web/tests/people.test.cjs b/web/tests/people.test.cjsindex 86a1fd1deac..6e44903824d 100644--- a/web/tests/people.test.cjs+++ b/web/tests/people.test.cjs@@ -899,6 +899,10 @@ run_test("dm_matches_search_string", () => {result = people.dm_matches_search_string([linus], "ltorv");assert.ok(result);+ // Match with user id.+ result = people.dm_matches_search_string([linus], "304");+ assert.ok(result);+// Test filtering of names with diacritics. This should match// Nöôáàh by ignoring diacritics, and also match Nooaah.result = people.dm_matches_search_string([noah], "noOa");