projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply suggestion to lib/pleroma/web/templates/layout/email_styled.html.eex
[akkoma]
/
test
/
notification_test.exs
diff --git
a/test/notification_test.exs
b/test/notification_test.exs
index ffa3d4b8c52604f0c638928de65d49b9b1de0c24..9a1c2f2b5ea969a416c5d352e0639ea834406c0e 100644
(file)
--- a/
test/notification_test.exs
+++ b/
test/notification_test.exs
@@
-98,7
+98,7
@@
defmodule Pleroma.NotificationTest do
assert Notification.create_notification(activity, user)
end
assert Notification.create_notification(activity, user)
end
- test "it creates a notificatin for the user if the user mutes the activity author" do
+ test "it creates a notificati
o
n for the user if the user mutes the activity author" do
muter = insert(:user)
muted = insert(:user)
{:ok, _} = User.mute(muter, muted)
muter = insert(:user)
muted = insert(:user)
{:ok, _} = User.mute(muter, muted)
@@
-745,7
+745,7
@@
defmodule Pleroma.NotificationTest do
{:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"})
{:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"})
- assert
length(Notification.for_user(user, %{with_muted: true})) == 0
+ assert
Enum.empty?(Notification.for_user(user, %{with_muted: true}))
end
test "it doesn't return notifications from a domain-blocked user when with_muted is set" do
end
test "it doesn't return notifications from a domain-blocked user when with_muted is set" do
@@
-755,7
+755,7
@@
defmodule Pleroma.NotificationTest do
{:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"})
{:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"})
- assert
length(Notification.for_user(user, %{with_muted: true})) == 0
+ assert
Enum.empty?(Notification.for_user(user, %{with_muted: true}))
end
test "it returns notifications from muted threads when with_muted is set" do
end
test "it returns notifications from muted threads when with_muted is set" do