diff options
author | lain <lain@soykaf.club> | 2020-01-20 18:10:55 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-01-20 18:10:55 +0100 |
commit | 7d8b709d293064462256d9a6392f993232323a4d (patch) | |
tree | 9565cc8b0eae80ed40cae526a124a3cfa9e2edec /test/notification_test.exs | |
parent | 4c5b5f14dcec51cba8e86bcfcf2943ee9b49b0e4 (diff) | |
parent | ab36459464311389c2929ff1c48537889066a9f8 (diff) | |
download | pleroma-7d8b709d293064462256d9a6392f993232323a4d.tar.gz pleroma-7d8b709d293064462256d9a6392f993232323a4d.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into emoji-reaction-extensions
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 |