GH-12702 v2: Add new command response parameter: "skip_slack_p… (#13420)
Add new command response parameter: "skip_slack_parsing". Skips Slack magic if set to "true". (#12702)
Этот коммит содержится в:
коммит произвёл
Ben Schumacher
родитель
4314a0427f
Коммит
566f28be0a
@@ -221,7 +221,11 @@ func TestHandleCommandResponsePost(t *testing.T) {
|
||||
Text: "<!here>",
|
||||
},
|
||||
}
|
||||
|
||||
// set and unset SkipSlackParsing here seems the nicest way as no separate response objects are created for every testcase.
|
||||
resp.SkipSlackParsing = true
|
||||
post, err = th.App.HandleCommandResponsePost(command, args, resp, builtIn)
|
||||
resp.SkipSlackParsing = false
|
||||
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, resp.Text, post.Message, "/code text should not be converted to Slack links")
|
||||
|
||||
Ссылка в новой задаче
Block a user