Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Avoid unnecessary people mocks.
Steve Howellfb96407607c1
diff --git a/frontend_tests/node_tests/composebox_typeahead.js b/frontend_tests/node_tests/composebox_typeahead.jsindex ee6b5f6b78b..a88fce49af6 100644--- a/frontend_tests/node_tests/composebox_typeahead.js+++ b/frontend_tests/node_tests/composebox_typeahead.js@@ -251,6 +251,7 @@ people.add_active_user(hal);people.add_active_user(harry);people.add_active_user(deactivated_user);people.deactivate(deactivated_user);+people.initialize_current_user(hamlet.user_id);const hamletcharacters = {name: "hamletcharacters",@@ -783,12 +784,7 @@ run_test("initialize", () => {assert.equal(appended_name, "Othello, the Moor of Venice");let appended_names = [];- people.__Rewire__("get_by_user_id", (user_id) => {- const users = {100: hamlet, 104: lear};- return users[user_id];- });- people.__Rewire__("my_current_email", () => "[email protected]");compose_pm_pill.set_from_typeahead = function (item) {appended_names.push(item.full_name);};