коммит произвёл
GitHub
родитель
770f7a8e5a
Коммит
0a06b3e808
@@ -1123,6 +1123,19 @@ func TestGetAllTeams(t *testing.T) {
|
||||
require.Error(t, err)
|
||||
CheckUnauthorizedStatus(t, resp)
|
||||
})
|
||||
|
||||
t.Run("Sanitize the teams in the response with total count", func(t *testing.T) {
|
||||
otherUser := th.CreateUser()
|
||||
client.Login(otherUser.Email, otherUser.Password)
|
||||
teams, _, _, err := client.GetAllTeamsWithTotalCount("", 0, 10)
|
||||
require.NoError(t, err)
|
||||
for _, team := range teams {
|
||||
if team.Email != "" {
|
||||
require.Nil(t, team.Email)
|
||||
break
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func TestGetAllTeamsSanitization(t *testing.T) {
|
||||
|
||||
Ссылка в новой задаче
Block a user