summaryrefslogtreecommitdiffstats
path: root/app/post_test.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-12-05 13:18:45 -0600
committerHarrison Healey <harrisonmhealey@gmail.com>2017-12-05 14:18:45 -0500
commite7725106ed5b435c625a63691d99acc197a2106a (patch)
treeb03305e9a653cda659b180281ca25cc9dbc274d5 /app/post_test.go
parent36777057f2b92bd3c0a222f2266eef2cc52f57d7 (diff)
downloadchat-e7725106ed5b435c625a63691d99acc197a2106a.tar.gz
chat-e7725106ed5b435c625a63691d99acc197a2106a.tar.bz2
chat-e7725106ed5b435c625a63691d99acc197a2106a.zip
fix post editing when channel links are present (#7938)
Diffstat (limited to 'app/post_test.go')
-rw-r--r--app/post_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/post_test.go b/app/post_test.go
index 3b7e8d039..82eac3cd1 100644
--- a/app/post_test.go
+++ b/app/post_test.go
@@ -175,4 +175,13 @@ func TestPostChannelMentions(t *testing.T) {
"display_name": "Mention Test",
},
}, result.Props["channel_mentions"])
+
+ post.Message = fmt.Sprintf("goodbye, ~%v!", channelToMention.Name)
+ result, err = th.App.UpdatePost(post, false)
+ require.Nil(t, err)
+ assert.Equal(t, map[string]interface{}{
+ "mention-test": map[string]interface{}{
+ "display_name": "Mention Test",
+ },
+ }, result.Props["channel_mentions"])
}