diff options
Diffstat (limited to 'api4/command_test.go')
-rw-r--r-- | api4/command_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/api4/command_test.go b/api4/command_test.go index 42c77e7b7..6ef0f4d27 100644 --- a/api4/command_test.go +++ b/api4/command_test.go @@ -423,6 +423,14 @@ func TestExecuteCommand(t *testing.T) { cmdPosted := false for _, post := range posts.Posts { if strings.Contains(post.Message, "test command response") { + if post.Type != "custom_test" { + t.Fatal("wrong type set in slash command post") + } + + if post.Props["someprop"] != "somevalue" { + t.Fatal("wrong prop set in slash command post") + } + cmdPosted = true break } |