diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-10-23 22:48:04 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-10-23 22:48:04 +0300 |
commit | d3fb9e02cc0ce7dc462e587e639e117aaef5fbc5 (patch) | |
tree | 37488507f02036d616bc1c9a52d691a77ae1c28d /test/notification_test.exs | |
parent | aa64b3108ba6aa4294e541e86da323ba1e1a7243 (diff) | |
download | pleroma-d3fb9e02cc0ce7dc462e587e639e117aaef5fbc5.tar.gz pleroma-d3fb9e02cc0ce7dc462e587e639e117aaef5fbc5.zip |
add tests
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 3 |
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 |