diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-06-20 09:55:43 -0400 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-06-20 14:55:43 +0100 |
commit | 2e6fd031d15a9502e7a7a4536febfe49780c0697 (patch) | |
tree | 644ad924de6ac441eee9f941683a6f92859229b6 /api4/team_test.go | |
parent | effaeee830efa78cd15218f6ba3920031ff8a5c1 (diff) | |
download | chat-2e6fd031d15a9502e7a7a4536febfe49780c0697.tar.gz chat-2e6fd031d15a9502e7a7a4536febfe49780c0697.tar.bz2 chat-2e6fd031d15a9502e7a7a4536febfe49780c0697.zip |
Add GET /teams/invite/{invite_id} endpoint for v4 (#6685)
Diffstat (limited to 'api4/team_test.go')
-rw-r--r-- | api4/team_test.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/api4/team_test.go b/api4/team_test.go index 2aee4ba5f..78ddc8e84 100644 --- a/api4/team_test.go +++ b/api4/team_test.go @@ -1453,3 +1453,24 @@ func TestInviteUsersToTeam(t *testing.T) { } } } + +func TestGetTeamInviteInfo(t *testing.T) { + th := Setup().InitBasic() + defer TearDown() + Client := th.Client + team := th.BasicTeam + + team, resp := Client.GetTeamInviteInfo(team.InviteId) + CheckNoError(t, resp) + + if team.DisplayName == "" { + t.Fatal("should not be empty") + } + + if team.Email != "" { + t.Fatal("should be empty") + } + + _, resp = Client.GetTeamInviteInfo("junk") + CheckBadRequestStatus(t, resp) +} |