summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-02-10 09:01:45 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-02-10 09:01:45 +0300
commitcd040691bd28fea1437b8f1c39bb914465e1ff46 (patch)
tree0c0352880457073756a6f317f158286b7fddf852 /test/notification_test.exs
parentb87533760bb386e85eb8c806e1d242d2b1380971 (diff)
downloadpleroma-cd040691bd28fea1437b8f1c39bb914465e1ff46.tar.gz
pleroma-cd040691bd28fea1437b8f1c39bb914465e1ff46.zip
maked `unread_count` as virtual field
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r--test/notification_test.exs5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index c9b352097..49a79b2d3 100644
--- a/test/notification_test.exs
+++ b/test/notification_test.exs
@@ -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