mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 13:59:55 +01:00
Format subscriptions related stuff
This commit is contained in:
parent
d56866c824
commit
06cd547fc6
2 changed files with 2 additions and 3 deletions
|
@ -30,7 +30,6 @@ defmodule Pleroma.NotificationTest do
|
|||
assert other_notification.activity_id == activity.id
|
||||
end
|
||||
|
||||
|
||||
test "it creates a notification for subscribed users" do
|
||||
user = insert(:user)
|
||||
subscriber = insert(:user)
|
||||
|
@ -38,7 +37,7 @@ defmodule Pleroma.NotificationTest do
|
|||
{:ok, _, _} = TwitterAPI.subscribe(subscriber, %{"user_id" => user.id})
|
||||
{:ok, status} = TwitterAPI.create_status(user, %{"status" => "Akariiiin"})
|
||||
{:ok, [notification]} = Notification.create_notifications(status)
|
||||
|
||||
|
||||
assert notification.user_id == subscriber.id
|
||||
end
|
||||
end
|
||||
|
|
|
@ -155,7 +155,7 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do
|
|||
"pleroma" => %{
|
||||
"confirmation_pending" => false,
|
||||
"tags" => [],
|
||||
"subscribed" => false,
|
||||
"subscribed" => false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue