summaryrefslogtreecommitdiffstats
path: root/api4/team_test.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-10-30 11:57:24 -0500
committerGitHub <noreply@github.com>2017-10-30 11:57:24 -0500
commitc5e8cb25caa39ed018ede5270e1566e8f7448396 (patch)
tree80f9f8957d4ff8458ecf9631135c916df25544bd /api4/team_test.go
parent63df41b91110bac06baffef87fe0c1952b47ac93 (diff)
downloadchat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.gz
chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.bz2
chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.zip
simplify things (#7735)
Diffstat (limited to 'api4/team_test.go')
-rw-r--r--api4/team_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/api4/team_test.go b/api4/team_test.go
index 544fa6157..da2f42369 100644
--- a/api4/team_test.go
+++ b/api4/team_test.go
@@ -282,7 +282,7 @@ func TestUpdateTeam(t *testing.T) {
uteam, resp = Client.UpdateTeam(team)
CheckNoError(t, resp)
- if uteam.AllowOpenInvite != true {
+ if !uteam.AllowOpenInvite {
t.Fatal("Update failed")
}
@@ -419,7 +419,7 @@ func TestPatchTeam(t *testing.T) {
if rteam.InviteId != "inviteid1" {
t.Fatal("InviteId did not update properly")
}
- if rteam.AllowOpenInvite != true {
+ if !rteam.AllowOpenInvite {
t.Fatal("AllowOpenInvite did not update properly")
}
@@ -1780,13 +1780,13 @@ func TestTeamExists(t *testing.T) {
exists, resp := Client.TeamExists(team.Name, "")
CheckNoError(t, resp)
- if exists != true {
+ if !exists {
t.Fatal("team should exist")
}
exists, resp = Client.TeamExists("testingteam", "")
CheckNoError(t, resp)
- if exists != false {
+ if exists {
t.Fatal("team should not exist")
}
@@ -1889,7 +1889,7 @@ func TestInviteUsersToTeam(t *testing.T) {
okMsg, resp := th.SystemAdminClient.InviteUsersToTeam(th.BasicTeam.Id, emailList)
CheckNoError(t, resp)
- if okMsg != true {
+ if !okMsg {
t.Fatal("should return true")
}