Fixing misspell errors (#8544)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
eb48292a3a
Коммит
014a3b6a60
@@ -573,7 +573,7 @@ func TestAdminResetPassword(t *testing.T) {
|
||||
Client.SetTeamId(team.Id)
|
||||
|
||||
if _, err := Client.AdminResetPassword(user.Id, "newpwd1"); err == nil {
|
||||
t.Fatal("Should have errored - not sytem admin")
|
||||
t.Fatal("Should have errored - not system admin")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ func TestLoadTestSetupCommands(t *testing.T) {
|
||||
th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnableTesting = true })
|
||||
|
||||
rs := Client.Must(Client.Command(channel.Id, "/test setup fuzz 1 1 1")).Data.(*model.CommandResponse)
|
||||
if rs.Text != "Created enviroment" {
|
||||
if rs.Text != "Created environment" {
|
||||
t.Fatal(rs.Text)
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ func TestMeCommand(t *testing.T) {
|
||||
} else {
|
||||
if p1.Posts[p1.Order[0]].Message != `*hello*` {
|
||||
t.Log(p1.Posts[p1.Order[0]].Message)
|
||||
t.Fatal("invalid shrug reponse")
|
||||
t.Fatal("invalid shrug response")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ func TestShrugCommand(t *testing.T) {
|
||||
} else {
|
||||
if p1.Posts[p1.Order[0]].Message != `¯\\\_(ツ)\_/¯` {
|
||||
t.Log(p1.Posts[p1.Order[0]].Message)
|
||||
t.Fatal("invalid shrug reponse")
|
||||
t.Fatal("invalid shrug response")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ func logClient(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
lvl := m["level"]
|
||||
msg := m["message"]
|
||||
|
||||
// filter out javascript errors from franz that are poluting the log files
|
||||
// filter out javascript errors from franz that are polluting the log files
|
||||
if strings.Contains(msg, "/franz") {
|
||||
forceToDebug = true
|
||||
}
|
||||
|
||||
@@ -428,7 +428,7 @@ func TestOAuthRegenerateAppSecret(t *testing.T) {
|
||||
}
|
||||
|
||||
if app2.ClientSecret == oauthApp.ClientSecret {
|
||||
t.Fatal("Should have been diferent client Secrets")
|
||||
t.Fatal("Should have been different client Secrets")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -931,7 +931,7 @@ func TestUpdateTeamMemberRoles(t *testing.T) {
|
||||
t.Fatal("Should have worked, user is team admin and has the ability to manage permissions on this team.")
|
||||
// Note to anyone who thinks this test is wrong:
|
||||
// This operation will not effect the system admin's permissions because they have global access to all teams.
|
||||
// Their team level permissions are irrelavent. A team admin should be able to manage team level permissions.
|
||||
// Their team level permissions are irrelevant. A team admin should be able to manage team level permissions.
|
||||
}
|
||||
|
||||
// System admins should be able to manipulate permission no matter what their team level permissions are.
|
||||
|
||||
Ссылка в новой задаче
Block a user