diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-07-19 03:43:31 +0800 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-07-18 15:43:31 -0400 |
commit | 21a3219b9b1df033635631afa751742bd4c56ea0 (patch) | |
tree | 6e97722afc7fc9ff3cee1c562732bd0924cf71da /model/outgoing_webhook_test.go | |
parent | 8fb58b1fc9f38db22beca42dcd3e692fe5b547ba (diff) | |
download | chat-21a3219b9b1df033635631afa751742bd4c56ea0.tar.gz chat-21a3219b9b1df033635631afa751742bd4c56ea0.tar.bz2 chat-21a3219b9b1df033635631afa751742bd4c56ea0.zip |
[PLT-6676] Make OutgoingWebhook to fire when post has no text content but only attachment (#6935)
* make OutgoingWebhook to fire when post has no text content but only attachment
* update per comment and modify payload & test
Diffstat (limited to 'model/outgoing_webhook_test.go')
-rw-r--r-- | model/outgoing_webhook_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/model/outgoing_webhook_test.go b/model/outgoing_webhook_test.go index 725423cdf..431b1f6c1 100644 --- a/model/outgoing_webhook_test.go +++ b/model/outgoing_webhook_test.go @@ -136,6 +136,7 @@ func TestOutgoingWebhookPayloadToFormValues(t *testing.T) { PostId: "PostId", Text: "Text", TriggerWord: "TriggerWord", + FileIds: "FileIds", } v := url.Values{} v.Set("token", "Token") @@ -149,6 +150,7 @@ func TestOutgoingWebhookPayloadToFormValues(t *testing.T) { v.Set("post_id", "PostId") v.Set("text", "Text") v.Set("trigger_word", "TriggerWord") + v.Set("file_ids", "FileIds") if got, want := p.ToFormValues(), v.Encode(); !reflect.DeepEqual(got, want) { t.Fatalf("Got %+v, wanted %+v", got, want) } |