summaryrefslogtreecommitdiffstats
path: root/app/notification_test.go
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2018-04-06 21:41:45 +0800
committerDerrick Anderson <derrick@andersonwebstudio.com>2018-04-06 09:41:45 -0400
commite16217166dd39fe75a9dc995c2d4e77cb7485143 (patch)
tree984aef02268d4c8786e849b949ec680589518e34 /app/notification_test.go
parentf7dd715052741097616816f9cce600006e5c2290 (diff)
downloadchat-e16217166dd39fe75a9dc995c2d4e77cb7485143.tar.gz
chat-e16217166dd39fe75a9dc995c2d4e77cb7485143.tar.bz2
chat-e16217166dd39fe75a9dc995c2d4e77cb7485143.zip
fix out of channel mentions for mentioned word with valid punctuations (#8585)
Diffstat (limited to 'app/notification_test.go')
-rw-r--r--app/notification_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/notification_test.go b/app/notification_test.go
index c72610b60..1abdd3d61 100644
--- a/app/notification_test.go
+++ b/app/notification_test.go
@@ -234,6 +234,12 @@ func TestGetExplicitMentions(t *testing.T) {
OtherPotentialMentions: []string{"potential"},
},
},
+ "PotentialOutOfChannelUserWithPeriod": {
+ Message: "this is an message for @potential.user",
+ Expected: &ExplicitMentions{
+ OtherPotentialMentions: []string{"potential.user"},
+ },
+ },
"InlineCode": {
Message: "`this shouldn't mention @channel at all`",
Keywords: map[string][]string{},