summaryrefslogtreecommitdiffstats
path: root/app/notification_test.go
diff options
context:
space:
mode:
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 43703c019..5fc1d152c 100644
--- a/app/notification_test.go
+++ b/app/notification_test.go
@@ -1414,6 +1414,12 @@ func TestGetPushNotificationMessage(t *testing.T) {
ExpectedMessage: "user uploaded one or more files in a direct message",
ExpectedCategory: model.CATEGORY_CAN_REPLY,
},
+ "only files without channel, public channel": {
+ HasFiles: true,
+ PushNotificationContents: model.GENERIC_NO_CHANNEL_NOTIFICATION,
+ ChannelType: model.CHANNEL_OPEN,
+ ExpectedMessage: "user uploaded one or more files",
+ },
} {
t.Run(name, func(t *testing.T) {
locale := tc.Locale