Add unit test for pinned statuses
authorGian Sass <gian.sass@outlook.de>
Wed, 11 Apr 2018 19:48:32 +0000 (15:48 -0400)
committerGian Sass <gian.sass@outlook.de>
Wed, 11 Apr 2018 19:48:32 +0000 (15:48 -0400)
test/web/mastodon_api/mastodon_api_controller_test.exs

index 5d39c25c617540f32719e80ea894989efbb42628..258d841225cb5775f28e2e6d9cd8149726e6b3eb 100644 (file)
@@ -316,6 +316,17 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
       assert id == to_string(note_two.id)
     end
 
+    test "unimplemented pinned statuses feature", %{conn: conn} do
+      note = insert(:note_activity)
+      user = User.get_by_ap_id(note_two.data["actor"])
+
+      conn =
+        conn
+        |> get("/api/v1/accounts/#{user.id}/statuses?pinned=true")
+
+      assert json_response(conn, 200) == []
+    end
+
     test "gets an users media", %{conn: conn} do
       note = insert(:note_activity)
       user = User.get_by_ap_id(note.data["actor"])