From 67486a43b23b29d062482f9ad2cf977228298c23 Mon Sep 17 00:00:00 2001 From: evykassirer Date: Sun, 14 Apr 2024 20:03:02 -0700 Subject: [PATCH] composebox_typeahead tests: Add some missing attributes to user objects. This doesn't fully add all missing attributes, but it adds ones that will soon be needed in upcoming commits. Ideally eventually these objects are full fake User objects with defaults for required attributes. --- web/tests/composebox_typeahead.test.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/web/tests/composebox_typeahead.test.js b/web/tests/composebox_typeahead.test.js index 3b8bd77586..4f3cce6b45 100644 --- a/web/tests/composebox_typeahead.test.js +++ b/web/tests/composebox_typeahead.test.js @@ -283,67 +283,80 @@ const ali = { email: "ali@zulip.com", user_id: 98, full_name: "Ali", + is_moderator: false, }; const alice = { email: "alice@zulip.com", user_id: 99, full_name: "Alice", + is_moderator: false, }; const hamlet = { email: "hamlet@zulip.com", user_id: 100, full_name: "King Hamlet", + is_moderator: false, }; const othello = { email: "othello@zulip.com", user_id: 101, full_name: "Othello, the Moor of Venice", + is_moderator: false, + delivery_email: null, }; const cordelia = { email: "cordelia@zulip.com", user_id: 102, full_name: "Cordelia, Lear's daughter", + is_moderator: false, }; const deactivated_user = { email: "other@zulip.com", user_id: 103, full_name: "Deactivated User", + is_moderator: false, }; const lear = { email: "lear@zulip.com", user_id: 104, full_name: "King Lear", + is_moderator: false, }; const twin1 = { full_name: "Mark Twin", + is_moderator: false, user_id: 105, email: "twin1@zulip.com", }; const twin2 = { full_name: "Mark Twin", + is_moderator: false, user_id: 106, email: "twin2@zulip.com", }; const gael = { full_name: "Gaƫl Twin", + is_moderator: false, user_id: 107, email: "twin3@zulip.com", }; const hal = { full_name: "Earl Hal", + is_moderator: false, user_id: 108, email: "hal@zulip.com", }; const harry = { full_name: "Harry", + is_moderator: false, user_id: 109, email: "harry@zulip.com", };