diff options
author | Christopher Brown <ccbrown112@gmail.com> | 2017-10-16 23:10:45 -0500 |
---|---|---|
committer | Christopher Brown <ccbrown112@gmail.com> | 2017-10-16 23:10:45 -0500 |
commit | 39cc2372695836fdc96059d8b94992b1416f98e1 (patch) | |
tree | 56d2beb5420cd0054194f71e53c6a95578beff9a /app/webhook_test.go | |
parent | 89dc3cb126ba46b486997c433adfdf34982fcc81 (diff) | |
parent | 8bf47c1211d09079fd9407555026b7b29383ac37 (diff) | |
download | chat-39cc2372695836fdc96059d8b94992b1416f98e1.tar.gz chat-39cc2372695836fdc96059d8b94992b1416f98e1.tar.bz2 chat-39cc2372695836fdc96059d8b94992b1416f98e1.zip |
Merge branch 'release-4.3'
Diffstat (limited to 'app/webhook_test.go')
-rw-r--r-- | app/webhook_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/webhook_test.go b/app/webhook_test.go index 5699addbf..b9ba35f43 100644 --- a/app/webhook_test.go +++ b/app/webhook_test.go @@ -44,4 +44,9 @@ func TestCreateWebhookPost(t *testing.T) { t.Fatal(k) } } + + _, 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") + } } |