Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

events: Use more realistic avatar_url in tests.

Evy Kassirer240177b87e4d
diff --git a/web/tests/lib/events.cjs b/web/tests/lib/events.cjs
index aa00495e929..5785dfb69f2 100644
--- a/web/tests/lib/events.cjs
+++ b/web/tests/lib/events.cjs
@@ -511,7 +511,7 @@ exports.fixtures = {
bot: {
user_id: 42,
- avatar_url: "/some/path/to/avatar",
+ avatar_url: "/avatar/42",
api_key: "SOME_KEY",
full_name: "The Bot",
bot_type: 1,
@@ -621,7 +621,7 @@ exports.fixtures = {
op: "add",
person: {
...test_user,
- avatar_url: "/some/path/to/avatar",
+ avatar_url: `/avatar/${test_user.user_id}`,
avatar_version: 1,
is_admin: false,
is_active: true,
@@ -641,7 +641,7 @@ exports.fixtures = {
op: "add",
person: {
...test_user,
- avatar_url: "/some/path/to/avatar",
+ avatar_url: `/avatar/${test_user.user_id}`,
avatar_version: 1,
is_admin: false,
is_active: true,