Fix spelling of environment
Этот коммит содержится в:
@@ -16,7 +16,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type TestEnviroment struct {
|
||||
type TestEnvironment struct {
|
||||
Params map[string][]string
|
||||
Client *model.Client
|
||||
CreatedTeamId string
|
||||
@@ -121,8 +121,8 @@ func manualTest(c *api.Context, w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, "/channels/town-square", http.StatusTemporaryRedirect)
|
||||
}
|
||||
|
||||
// Setup test enviroment
|
||||
env := TestEnviroment{
|
||||
// Setup test environment
|
||||
env := TestEnvironment{
|
||||
Params: params,
|
||||
Client: client,
|
||||
CreatedTeamId: teamID,
|
||||
|
||||
@@ -19,7 +19,7 @@ http://www.google.com.pk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8
|
||||
https://medium.com/@slackhq/11-useful-tips-for-getting-the-most-of-slack-5dfb3d1af77
|
||||
`
|
||||
|
||||
func testAutoLink(env TestEnviroment) *model.AppError {
|
||||
func testAutoLink(env TestEnvironment) *model.AppError {
|
||||
l4g.Info("Manual Auto Link Test")
|
||||
channelID, err := getChannelID(model.DEFAULT_CHANNEL, env.CreatedTeamId, env.CreatedUserId)
|
||||
if err != true {
|
||||
|
||||
Ссылка в новой задаче
Block a user