summaryrefslogtreecommitdiffstats
path: root/app/webhook_test.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-10-09 13:30:48 -0400
committerChris <ccbrown112@gmail.com>2017-10-09 10:30:48 -0700
commit9adaf53e110e0e806b21903111aacb93129668cb (patch)
treeedea5dfe0b71945142898840d0485adb57750b31 /app/webhook_test.go
parent0da0cf1a21d7dea61f4459ee71bf01b6ca362aee (diff)
downloadchat-9adaf53e110e0e806b21903111aacb93129668cb.tar.gz
chat-9adaf53e110e0e806b21903111aacb93129668cb.tar.bz2
chat-9adaf53e110e0e806b21903111aacb93129668cb.zip
PLT-7818 Updates to post type (#7579)
* Updates to post type * Update tests
Diffstat (limited to 'app/webhook_test.go')
-rw-r--r--app/webhook_test.go5
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")
+ }
}