summaryrefslogtreecommitdiffstats
path: root/api4/team_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/team_test.go')
-rw-r--r--api4/team_test.go21
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)
+}