forked from AkkomaGang/akkoma
oops
This commit is contained in:
parent
5d73dca064
commit
fd2e31af86
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ test "returns the activity that created an object" do
|
||||||
test "reply count" do
|
test "reply count" do
|
||||||
%{id: id, data: %{"object" => %{"id" => object_ap_id}}} = activity = insert(:note_activity)
|
%{id: id, data: %{"object" => %{"id" => object_ap_id}}} = activity = insert(:note_activity)
|
||||||
|
|
||||||
repliesCount = activity.data["object"]["repliesCount"] || 0
|
replies_count = activity.data["object"]["repliesCount"] || 0
|
||||||
expected_increase = repliesCount + 1
|
expected_increase = replies_count + 1
|
||||||
Activity.increase_replies_count(object_ap_id)
|
Activity.increase_replies_count(object_ap_id)
|
||||||
%{data: %{"object" => %{"repliesCount" => actual_increase}}} = Activity.get_by_id(id)
|
%{data: %{"object" => %{"repliesCount" => actual_increase}}} = Activity.get_by_id(id)
|
||||||
assert expected_increase == actual_increase
|
assert expected_increase == actual_increase
|
||||||
|
|
Loading…
Reference in a new issue