aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-10-22 16:13:22 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-10-23 11:22:48 +0300
commit9a4afbd2a0486238bfaf4047d91376d32635514a (patch)
treed3a5140191d5edc97997be42f42e7feb01c365ad /test
parentd4270397dcb2aebde8ed14fd89998ab57aaae545 (diff)
downloadpleroma-9a4afbd2a0486238bfaf4047d91376d32635514a.tar.gz
added update unread_count for notifications
Diffstat (limited to 'test')
-rw-r--r--test/notification_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index 96316f8dd..558ac358c 100644
--- a/test/notification_test.exs
+++ b/test/notification_test.exs
@@ -310,6 +310,13 @@ defmodule Pleroma.NotificationTest do
assert n1.seen == true
assert n2.seen == true
assert n3.seen == false
+
+ assert %Pleroma.Marker{unread_count: 1} =
+ Pleroma.Repo.get_by(
+ Pleroma.Marker,
+ user_id: other_user.id,
+ timeline: "notifications"
+ )
end
end