Add unit test for pinned statuses

This commit is contained in:
Gian Sass 2018-04-11 15:48:32 -04:00
parent 907df9b8ed
commit 3a5c0465eb
1 changed files with 11 additions and 0 deletions

View File

@ -316,6 +316,17 @@ test "gets a users statuses", %{conn: conn} do
assert id == to_string(note_two.id) assert id == to_string(note_two.id)
end 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 test "gets an users media", %{conn: conn} do
note = insert(:note_activity) note = insert(:note_activity)
user = User.get_by_ap_id(note.data["actor"]) user = User.get_by_ap_id(note.data["actor"])