mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
The people.js tests were using _add_user function to add cross realm bots. The problem is that _add_user function doesn't properly simulates the adding process as it doesn't add the user in cross_realm_dict as well. To solve this and eliminate the need of calling people.initialize(), which means the params obj needs to be defined, we extracted the whole logic of adding a cross realm user into a separete function, add_cross_realm_user.