Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: marcin mikołajczak <[email protected]>
  • Loading branch information
mkljczk committed Aug 31, 2024
1 parent 9592310 commit 007d305
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,13 @@ defmodule Pleroma.Web.MastodonAPI.MarkerControllerTest do
token = insert(:oauth_token, user: user1, scopes: ["write:statuses"])

user2 = insert(:user)
{:ok, _activity1} = CommonAPI.post(user2, %{status: "hi @#{user1.nickname}"})
{:ok, _activity2} = CommonAPI.post(user2, %{status: "hi @#{user1.nickname}"})
{:ok, _activity3} = CommonAPI.post(user2, %{status: "HIE @#{user1.nickname}"})
{:ok, activity1} = CommonAPI.post(user2, %{status: "hi @#{user1.nickname}"})
{:ok, activity2} = CommonAPI.post(user2, %{status: "hi @#{user1.nickname}"})
{:ok, activity3} = CommonAPI.post(user2, %{status: "HIE @#{user1.nickname}"})

Notification.create_notifications(activity1)
Notification.create_notifications(activity2)
Notification.create_notifications(activity3)

[notification3, notification2, notification1] = Notification.for_user(user1, %{limit: 3})

Expand Down

0 comments on commit 007d305

Please sign in to comment.