projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'openapi/timelines' into 'develop'
[akkoma]
/
test
/
conversation
/
participation_test.exs
diff --git
a/test/conversation/participation_test.exs
b/test/conversation/participation_test.exs
index 88dc321984311af31bb3edb717dfdbcd3841c796..3536842e8ac0c45a7c3578333547e95d855451e2 100644
(file)
--- a/
test/conversation/participation_test.exs
+++ b/
test/conversation/participation_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Conversation.ParticipationTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Conversation.ParticipationTest do
@@
-99,7
+99,7
@@
defmodule Pleroma.Conversation.ParticipationTest do
assert participation.user_id == user.id
assert participation.conversation_id == conversation.id
assert participation.user_id == user.id
assert participation.conversation_id == conversation.id
-
+
# Needed because updated_at is accurate down to a second
:timer.sleep(1000)
# Needed because updated_at is accurate down to a second
:timer.sleep(1000)
@@
-125,9
+125,10
@@
defmodule Pleroma.Conversation.ParticipationTest do
test "it marks a participation as read" do
participation = insert(:participation, %{read: false})
test "it marks a participation as read" do
participation = insert(:participation, %{read: false})
- {:ok, participation} = Participation.mark_as_read(participation)
+ {:ok,
updated_
participation} = Participation.mark_as_read(participation)
- assert participation.read
+ assert updated_participation.read
+ assert updated_participation.updated_at == participation.updated_at
end
test "it marks a participation as unread" do
end
test "it marks a participation as unread" do