add tests

This commit is contained in:
Maksim Pechnikov 2019-10-23 22:48:04 +03:00
commit d3fb9e02cc
4 changed files with 23 additions and 7 deletions

View file

@ -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