diff options
author | Chris <ccbrown112@gmail.com> | 2017-11-09 14:46:20 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-09 14:46:20 -0600 |
commit | 10c5a927cb619f1aa2a599cbe3667820f4766bda (patch) | |
tree | f415540ab66115e62928d304c99b533398d7f226 /app/notification_test.go | |
parent | b0c18ece0988b1573b2286bb73b32e48a1d8c59a (diff) | |
download | chat-10c5a927cb619f1aa2a599cbe3667820f4766bda.tar.gz chat-10c5a927cb619f1aa2a599cbe3667820f4766bda.tar.bz2 chat-10c5a927cb619f1aa2a599cbe3667820f4766bda.zip |
more global config ref cleanup (#7802)
Diffstat (limited to 'app/notification_test.go')
-rw-r--r-- | app/notification_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/notification_test.go b/app/notification_test.go index 83e725646..5ae765649 100644 --- a/app/notification_test.go +++ b/app/notification_test.go @@ -447,7 +447,7 @@ func TestGetMentionKeywords(t *testing.T) { } profiles := map[string]*model.User{user1.Id: user1} - mentions := GetMentionKeywordsInChannel(profiles, true) + mentions := th.App.GetMentionKeywordsInChannel(profiles, true) if len(mentions) != 3 { t.Fatal("should've returned three mention keywords") } else if ids, ok := mentions["user"]; !ok || ids[0] != user1.Id { @@ -469,7 +469,7 @@ func TestGetMentionKeywords(t *testing.T) { } profiles = map[string]*model.User{user2.Id: user2} - mentions = GetMentionKeywordsInChannel(profiles, true) + mentions = th.App.GetMentionKeywordsInChannel(profiles, true) if len(mentions) != 2 { t.Fatal("should've returned two mention keyword") } else if ids, ok := mentions["First"]; !ok || ids[0] != user2.Id { @@ -487,7 +487,7 @@ func TestGetMentionKeywords(t *testing.T) { } profiles = map[string]*model.User{user3.Id: user3} - mentions = GetMentionKeywordsInChannel(profiles, true) + mentions = th.App.GetMentionKeywordsInChannel(profiles, true) if len(mentions) != 3 { t.Fatal("should've returned three mention keywords") } else if ids, ok := mentions["@channel"]; !ok || ids[0] != user3.Id { @@ -509,7 +509,7 @@ func TestGetMentionKeywords(t *testing.T) { } profiles = map[string]*model.User{user4.Id: user4} - mentions = GetMentionKeywordsInChannel(profiles, true) + mentions = th.App.GetMentionKeywordsInChannel(profiles, true) if len(mentions) != 6 { t.Fatal("should've returned six mention keywords") } else if ids, ok := mentions["user"]; !ok || ids[0] != user4.Id { @@ -551,7 +551,7 @@ func TestGetMentionKeywords(t *testing.T) { user3.Id: user3, user4.Id: user4, } - mentions = GetMentionKeywordsInChannel(profiles, true) + mentions = th.App.GetMentionKeywordsInChannel(profiles, true) if len(mentions) != 6 { t.Fatal("should've returned six mention keywords") } else if ids, ok := mentions["user"]; !ok || len(ids) != 2 || (ids[0] != user1.Id && ids[1] != user1.Id) || (ids[0] != user4.Id && ids[1] != user4.Id) { @@ -572,7 +572,7 @@ func TestGetMentionKeywords(t *testing.T) { profiles = map[string]*model.User{ user1.Id: user1, } - mentions = GetMentionKeywordsInChannel(profiles, false) + mentions = th.App.GetMentionKeywordsInChannel(profiles, false) if len(mentions) != 3 { t.Fatal("should've returned three mention keywords") } else if ids, ok := mentions["user"]; !ok || len(ids) != 1 || ids[0] != user1.Id { |