From cad4ba2ab3ddd76391f97e4c75dba1cf1429ad31 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Wed, 22 Jun 2022 17:20:55 +0100 Subject: [PATCH] mix format --- test/pleroma/web/activity_pub/visibility_test.exs | 3 +-- .../web/mastodon_api/views/notification_view_test.exs | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/pleroma/web/activity_pub/visibility_test.exs b/test/pleroma/web/activity_pub/visibility_test.exs index 7b389ed76..1595f9085 100644 --- a/test/pleroma/web/activity_pub/visibility_test.exs +++ b/test/pleroma/web/activity_pub/visibility_test.exs @@ -34,8 +34,7 @@ defmodule Pleroma.Web.ActivityPub.VisibilityTest do {:ok, unlisted} = CommonAPI.post(user, %{status: "@#{mentioned.nickname}", visibility: "unlisted"}) - {:ok, local} = - CommonAPI.post(user, %{status: "@#{mentioned.nickname}", visibility: "local"}) + {:ok, local} = CommonAPI.post(user, %{status: "@#{mentioned.nickname}", visibility: "local"}) {:ok, list} = CommonAPI.post(user, %{ diff --git a/test/pleroma/web/mastodon_api/views/notification_view_test.exs b/test/pleroma/web/mastodon_api/views/notification_view_test.exs index b5e36c86b..a22c9df1d 100644 --- a/test/pleroma/web/mastodon_api/views/notification_view_test.exs +++ b/test/pleroma/web/mastodon_api/views/notification_view_test.exs @@ -238,7 +238,9 @@ test "EmojiReact notification with remote custom emoji" do other_user = insert(:user, local: false) {:ok, activity} = CommonAPI.post(user, %{status: "#morb"}) - {:ok, emoji_react, _} = Builder.emoji_react(other_user, Object.normalize(activity, fetch: false), ":100a:") + + {:ok, emoji_react, _} = + Builder.emoji_react(other_user, Object.normalize(activity, fetch: false), ":100a:") remoteUrl = "http://evil.website/emoji/100a.png" [tag] = emoji_react["tag"] @@ -259,11 +261,12 @@ test "EmojiReact notification with remote custom emoji" do pleroma: %{is_seen: false, is_muted: false}, type: "pleroma:emoji_reaction", emoji: ":100a:", - emoji_url: (if testProxy, do: MediaProxy.encode_url(remoteUrl), else: remoteUrl), + emoji_url: if(testProxy, do: MediaProxy.encode_url(remoteUrl), else: remoteUrl), account: AccountView.render("show.json", %{user: other_user, for: user}), status: StatusView.render("show.json", %{activity: activity, for: user}), created_at: Utils.to_masto_date(notification.inserted_at) } + test_notifications_rendering([notification], user, [expected]) end end