diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-01-22 09:30:30 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-01-22 09:30:30 +0300 |
commit | b8d5c09f48a4b643f0dc60930bc69772a32a3b5e (patch) | |
tree | 59d1903f2d204b8a5e244430cb17ef772ced5f4e /test/notification_test.exs | |
parent | b7908844f24f4ede4244261d43f30ed3724efbb7 (diff) | |
parent | 71bffbf0b7a3f0e245408a977c48a51763021508 (diff) | |
download | pleroma-b8d5c09f48a4b643f0dc60930bc69772a32a3b5e.tar.gz pleroma-b8d5c09f48a4b643f0dc60930bc69772a32a3b5e.zip |
Merge branch 'develop' into issue/1383
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs index f5f23bb5a..9a1c2f2b5 100644 --- 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}"}) - 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 @@ -755,7 +755,7 @@ defmodule Pleroma.NotificationTest do {: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 |