summaryrefslogtreecommitdiffstats
path: root/app/notification_test.go
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-08-03 10:44:32 +0200
committerGitHub <noreply@github.com>2018-08-03 10:44:32 +0200
commit8cc4f27f7cb17af34951ad4c7a59ca7bad082f61 (patch)
treec1776cc305ab1a80a451d36765447b61511d4ab4 /app/notification_test.go
parent7a731d2bd162419086f3aeec98ec41dfcaa16696 (diff)
downloadchat-8cc4f27f7cb17af34951ad4c7a59ca7bad082f61.tar.gz
chat-8cc4f27f7cb17af34951ad4c7a59ca7bad082f61.tar.bz2
chat-8cc4f27f7cb17af34951ad4c7a59ca7bad082f61.zip
MM-11529: Allow to Leave an archived channel from the API (#9204)
* MM-11529: Allow to Leave an archived channel from the API * Remove the restriction to remove user from archive channel to yourself
Diffstat (limited to 'app/notification_test.go')
-rw-r--r--app/notification_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/notification_test.go b/app/notification_test.go
index d9f81dccb..bdc38e455 100644
--- a/app/notification_test.go
+++ b/app/notification_test.go
@@ -78,6 +78,11 @@ func TestSendNotifications(t *testing.T) {
if err != nil {
t.Fatal(err)
}
+
+ th.BasicChannel.DeleteAt = 1
+ mentions, err = th.App.SendNotifications(post1, th.BasicTeam, th.BasicChannel, th.BasicUser, nil)
+ assert.Nil(t, err)
+ assert.Len(t, mentions, 0)
}
func TestGetExplicitMentions(t *testing.T) {