diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-11-21 00:57:35 +0100 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-11-20 15:57:35 -0800 |
commit | fdba2d50fd431796e49cef00484de410b7a7a350 (patch) | |
tree | f56c63e6b5f4c194c8390d91e1425e7c78106cd3 /app/webhook_test.go | |
parent | e2b165cf3ea241dd430cca8145a2dc459110666e (diff) | |
download | chat-fdba2d50fd431796e49cef00484de410b7a7a350.tar.gz chat-fdba2d50fd431796e49cef00484de410b7a7a350.tar.bz2 chat-fdba2d50fd431796e49cef00484de410b7a7a350.zip |
[PLT-840] Add option to outgoing webhooks to reply to the posted message as a comment (#7807)
Diffstat (limited to 'app/webhook_test.go')
-rw-r--r-- | app/webhook_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/webhook_test.go b/app/webhook_test.go index f0cc0610a..9fef6fde3 100644 --- a/app/webhook_test.go +++ b/app/webhook_test.go @@ -38,7 +38,7 @@ func TestCreateWebhookPost(t *testing.T) { Text: "text", }, }, - }, model.POST_SLACK_ATTACHMENT) + }, model.POST_SLACK_ATTACHMENT, "") if err != nil { t.Fatal(err.Error()) } @@ -49,7 +49,7 @@ func TestCreateWebhookPost(t *testing.T) { } } - _, err = th.App.CreateWebhookPost(hook.UserId, th.BasicChannel, "foo", "user", "http://iconurl", nil, model.POST_SYSTEM_GENERIC) + _, err = th.App.CreateWebhookPost(hook.UserId, th.BasicChannel, "foo", "user", "http://iconurl", nil, model.POST_SYSTEM_GENERIC, "") if err == nil { t.Fatal("should have failed - bad post type") } |