Add unit test for pinned statuses
This commit is contained in:
parent
907df9b8ed
commit
3a5c0465eb
|
@ -316,6 +316,17 @@ test "gets a users statuses", %{conn: conn} 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"])
|
||||
|
|
Loading…
Reference in a new issue