summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-09-13 07:12:34 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-09-13 07:12:34 +0300
commitd8a178274bd1eb642270e52f207849014cba12bc (patch)
tree72712fb8f1854a055b0fa70aec5e7cc1cc0bfc5e /test
parent58b17196fa3f2583db5ee0534766350ed25727e0 (diff)
downloadpleroma-d8a178274bd1eb642270e52f207849014cba12bc.tar.gz
pleroma-d8a178274bd1eb642270e52f207849014cba12bc.zip
fix Activity.get_by_id
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs
index 7b337044c..35c2236c8 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -2864,6 +2864,15 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
assert response == %{}
end
+
+ test "returns empty object when id isn't FlakeID", %{conn: conn} do
+ response =
+ conn
+ |> get("/api/v1/statuses/3ebbadd1-eb14-4e20-8118/card")
+ |> json_response(200)
+
+ assert response == %{}
+ end
end
test "bookmarks" do