From 2e6fd031d15a9502e7a7a4536febfe49780c0697 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 20 Jun 2017 09:55:43 -0400 Subject: Add GET /teams/invite/{invite_id} endpoint for v4 (#6685) --- api4/team_test.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'api4/team_test.go') 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) +} -- cgit v1.2.3-1-g7c22