Update command_test.go (#12654)
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
955242e404
Коммит
f167a39abe
@@ -276,7 +276,7 @@ func TestModifyCommand(t *testing.T) {
|
|||||||
assert.Equal(t, cmd.IconURL, command.IconURL)
|
assert.Equal(t, cmd.IconURL, command.IconURL)
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("mispelled flag", func(t *testing.T) {
|
t.Run("misspelled flag", func(t *testing.T) {
|
||||||
args := []string{"command", "", command.Id, "--trigger-wor", "sometrigger"}
|
args := []string{"command", "", command.Id, "--trigger-wor", "sometrigger"}
|
||||||
output, _ := th.RunCommandWithOutput(t, args...)
|
output, _ := th.RunCommandWithOutput(t, args...)
|
||||||
assert.Contains(t, string(output), "Error: unknown flag:")
|
assert.Contains(t, string(output), "Error: unknown flag:")
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user