From: Sadposter Date: Fri, 5 Apr 2019 14:22:48 +0000 (+0100) Subject: Format subscriptions related stuff X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=06cd547fc6562b00d505fcc8e78ba7c734b1adf0;p=akkoma Format subscriptions related stuff --- diff --git a/test/notification_test.exs b/test/notification_test.exs index 3a11d493b..96a8d372a 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -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 diff --git a/test/web/twitter_api/views/user_view_test.exs b/test/web/twitter_api/views/user_view_test.exs index f9ae5888c..8986112cc 100644 --- a/test/web/twitter_api/views/user_view_test.exs +++ b/test/web/twitter_api/views/user_view_test.exs @@ -155,7 +155,7 @@ defmodule Pleroma.Web.TwitterAPI.UserViewTest do "pleroma" => %{ "confirmation_pending" => false, "tags" => [], - "subscribed" => false, + "subscribed" => false } }