summaryrefslogtreecommitdiffstats
path: root/app/webhook_test.go
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2017-12-22 16:20:18 +0100
committerJoram Wilander <jwawilander@gmail.com>2017-12-22 10:20:18 -0500
commitd9b8c4db76956f004c6405ab8e44cf1c17308af7 (patch)
treece5dbec66b06d6828a57e326e69a92724cb27700 /app/webhook_test.go
parent1aac5a9c975d6428ec9aadcc5613881faa6b7874 (diff)
downloadchat-d9b8c4db76956f004c6405ab8e44cf1c17308af7.tar.gz
chat-d9b8c4db76956f004c6405ab8e44cf1c17308af7.tar.bz2
chat-d9b8c4db76956f004c6405ab8e44cf1c17308af7.zip
[PLT-8438] Include incoming webhook display name in post props (#7997)
Diffstat (limited to 'app/webhook_test.go')
-rw-r--r--app/webhook_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/webhook_test.go b/app/webhook_test.go
index 13771a97f..bc72d4b6e 100644
--- a/app/webhook_test.go
+++ b/app/webhook_test.go
@@ -33,13 +33,15 @@ func TestCreateWebhookPost(t *testing.T) {
Text: "text",
},
},
+ "webhook_display_name": hook.DisplayName,
}, model.POST_SLACK_ATTACHMENT, "")
if err != nil {
t.Fatal(err.Error())
}
- for _, k := range []string{"from_webhook", "attachments"} {
+ for _, k := range []string{"from_webhook", "attachments", "webhook_display_name"} {
if _, ok := post.Props[k]; !ok {
+ t.Log("missing one props: " + k)
t.Fatal(k)
}
}