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 f5f23bb5a1ad9bb9a655c5d49c4e4b3ac13d2d70..9a1c2f2b5ea969a416c5d352e0639ea834406c0e 100644
(file)
--- a/
test/notification_test.exs
+++ b/
test/notification_test.exs
@@
-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