diff options
author | Stephen Kiers <stephen@stephenkiers.com> | 2018-02-12 20:50:20 -0700 |
---|---|---|
committer | Stephen Kiers <stephen@stephenkiers.com> | 2018-02-12 20:50:20 -0700 |
commit | bdf478c75bb41c00cdfd47bd7ae68c70a06886af (patch) | |
tree | e9b7d09577cdb39bb65c3b7887c718e06c8bb30a /app/notification_test.go | |
parent | 0cbba46018d3879234d3940e8ee6f23dd99a1c5a (diff) | |
download | chat-bdf478c75bb41c00cdfd47bd7ae68c70a06886af.tar.gz chat-bdf478c75bb41c00cdfd47bd7ae68c70a06886af.tar.bz2 chat-bdf478c75bb41c00cdfd47bd7ae68c70a06886af.zip |
Added another test
Diffstat (limited to 'app/notification_test.go')
-rw-r--r-- | app/notification_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/notification_test.go b/app/notification_test.go index 7f2a63ab9..61442c048 100644 --- a/app/notification_test.go +++ b/app/notification_test.go @@ -188,6 +188,15 @@ func TestGetExplicitMentions(t *testing.T) { }, }, }, + "AtUserWithPeriodAtEndOfSentence": { + Message: "this is a message for @user.period.", + Keywords: map[string][]string{"@user.period": {id1}}, + Expected: &ExplicitMentions{ + MentionedUserIds: map[string]bool{ + id1: true, + }, + }, + }, "UserWithPeriodAtEndOfSentence": { Message: "this is a message for user.period.", Keywords: map[string][]string{"user.period": {id1}}, |