Merge remote-tracking branch 'origin/develop' into reactions
[akkoma] / test / web / mastodon_api / views / notification_view_test.exs
index 81ab82e2baa92f0633db431859b3b116993f9d2c..c9043a69ada032c61f404dcf7c96800c9c8ecdd5 100644 (file)
@@ -100,5 +100,11 @@ defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do
       NotificationView.render("index.json", %{notifications: [notification], for: followed})
 
     assert [expected] == result
+
+    User.perform(:delete, follower)
+    notification = Notification |> Repo.one() |> Repo.preload(:activity)
+
+    assert [] ==
+             NotificationView.render("index.json", %{notifications: [notification], for: followed})
   end
 end