maked unread_count as virtual field
This commit is contained in:
parent
b87533760b
commit
cd040691bd
7 changed files with 123 additions and 156 deletions
|
|
@ -338,12 +338,15 @@ defmodule Pleroma.NotificationTest do
|
|||
assert n2.seen == true
|
||||
assert n3.seen == false
|
||||
|
||||
assert %Pleroma.Marker{unread_count: 1} =
|
||||
assert %Pleroma.Marker{} =
|
||||
m =
|
||||
Pleroma.Repo.get_by(
|
||||
Pleroma.Marker,
|
||||
user_id: other_user.id,
|
||||
timeline: "notifications"
|
||||
)
|
||||
|
||||
assert m.last_read_id == to_string(n2.id)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue