diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2019-07-29 02:43:19 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-07-29 02:43:19 +0000 |
commit | b93498eb5289dc92587b77c316ed9f697bb9e5c8 (patch) | |
tree | 111e1e9af9aa8c2ea40989e1897320b34c796ace /test/web/push/impl_test.exs | |
parent | 9d78b3b281ff7f758d4e0dce19fd74d938e47ccc (diff) | |
download | pleroma-b93498eb5289dc92587b77c316ed9f697bb9e5c8.tar.gz |
constants: add as_public constant and use it everywhere
Diffstat (limited to 'test/web/push/impl_test.exs')
-rw-r--r-- | test/web/push/impl_test.exs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/web/push/impl_test.exs b/test/web/push/impl_test.exs index 1e948086a..e2f89f40a 100644 --- a/test/web/push/impl_test.exs +++ b/test/web/push/impl_test.exs @@ -124,8 +124,7 @@ defmodule Pleroma.Web.Push.ImplTest do {:ok, _, _, activity} = CommonAPI.follow(user, other_user) object = Object.normalize(activity) - assert Impl.format_body(%{activity: activity}, user, object) == - "@Bob has followed you" + assert Impl.format_body(%{activity: activity}, user, object) == "@Bob has followed you" end test "renders body for announce activity" do @@ -156,7 +155,6 @@ defmodule Pleroma.Web.Push.ImplTest do {:ok, activity, _} = CommonAPI.favorite(activity.id, user) object = Object.normalize(activity) - assert Impl.format_body(%{activity: activity}, user, object) == - "@Bob has favorited your post" + assert Impl.format_body(%{activity: activity}, user, object) == "@Bob has favorited your post" end end |