diff options
Diffstat (limited to 'api4/user_test.go')
-rw-r--r-- | api4/user_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api4/user_test.go b/api4/user_test.go index 010f49e73..a9aa967be 100644 --- a/api4/user_test.go +++ b/api4/user_test.go @@ -872,6 +872,11 @@ func TestAutocompleteUsers(t *testing.T) { if rusers.Users[0].FirstName != "" || rusers.Users[0].LastName != "" { t.Fatal("should not show first/last name") } + + t.Run("team id, if provided, must match channel's team id", func(t *testing.T) { + rusers, resp = Client.AutocompleteUsersInChannel("otherTeamId", channelId, username, "") + CheckErrorMessage(t, resp, "api.user.autocomplete_users.invalid_team_id") + }) } func TestGetProfileImage(t *testing.T) { |