diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-12-19 20:45:44 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-12-19 20:45:44 +0700 |
commit | 34d85f8a5473fe0f85e8a8e9e8f58e40b3964ba4 (patch) | |
tree | 46eb1651e24997e2e2f4ef6efc891a77e26ea8a8 /test | |
parent | 6c39fa20b191f985a2be704089c20acbcfe0035a (diff) | |
download | pleroma-34d85f8a5473fe0f85e8a8e9e8f58e40b3964ba4.tar.gz pleroma-34d85f8a5473fe0f85e8a8e9e8f58e40b3964ba4.zip |
Return 404 if account to filter notifications from is not found
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/controllers/notification_controller_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/controllers/notification_controller_test.exs b/test/web/mastodon_api/controllers/notification_controller_test.exs index 3458776ab..24d0d49ed 100644 --- a/test/web/mastodon_api/controllers/notification_controller_test.exs +++ b/test/web/mastodon_api/controllers/notification_controller_test.exs @@ -478,11 +478,11 @@ defmodule Pleroma.Web.MastodonAPI.NotificationControllerTest do |> get("/api/v1/notifications", %{account_id: account_id}) |> json_response(200) - assert [] = + assert %{"error" => "Account is not found"} = conn |> assign(:user, user) |> get("/api/v1/notifications", %{account_id: "cofe"}) - |> json_response(200) + |> json_response(404) end end |