From 36a15925dc4d10ac0c0a14ddbc60855aa5331519 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 28 Apr 2017 11:04:13 -0400 Subject: Fix user autocomplete for DMs and GMs (#6265) --- api4/user_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'api4/user_test.go') diff --git a/api4/user_test.go b/api4/user_test.go index 82949f913..d73aea292 100644 --- a/api4/user_test.go +++ b/api4/user_test.go @@ -507,6 +507,12 @@ func TestAutocompleteUsers(t *testing.T) { t.Fatal("should have many users") } + rusers, resp = Client.AutocompleteUsersInChannel("", channelId, "", "") + CheckNoError(t, resp) + if len(rusers.Users) < 2 { + t.Fatal("should have many users") + } + rusers, resp = Client.AutocompleteUsersInTeam(teamId, username, "") CheckNoError(t, resp) -- cgit v1.2.3-1-g7c22