summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-10-23 22:48:04 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-10-23 22:48:04 +0300
commitd3fb9e02cc0ce7dc462e587e639e117aaef5fbc5 (patch)
tree37488507f02036d616bc1c9a52d691a77ae1c28d /test/notification_test.exs
parentaa64b3108ba6aa4294e541e86da323ba1e1a7243 (diff)
downloadpleroma-d3fb9e02cc0ce7dc462e587e639e117aaef5fbc5.tar.gz
pleroma-d3fb9e02cc0ce7dc462e587e639e117aaef5fbc5.zip
add tests
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r--test/notification_test.exs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index 558ac358c..1e8a9ca98 100644
--- a/test/notification_test.exs
+++ b/test/notification_test.exs
@@ -31,6 +31,9 @@ defmodule Pleroma.NotificationTest do
assert notified_ids == [other_user.id, third_user.id]
assert notification.activity_id == activity.id
assert other_notification.activity_id == activity.id
+
+ assert [%Pleroma.Marker{unread_count: 2}] =
+ Pleroma.Marker.get_markers(other_user, ["notifications"])
end
test "it creates a notification for subscribed users" do