forked from AkkomaGang/akkoma
improve test
This commit is contained in:
parent
e90b734f1c
commit
9c2afb2e71
1 changed files with 14 additions and 0 deletions
|
@ -50,6 +50,20 @@ test "it inserts an incoming activity into the database", %{conn: conn} do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "/users/:nickname/outbox" do
|
||||||
|
test "it returns a note action in a collection", %{conn: conn} do
|
||||||
|
note_activity = insert(:note_activity)
|
||||||
|
user = User.get_cached_by_ap_id(note_activity.data["actor"])
|
||||||
|
|
||||||
|
conn =
|
||||||
|
conn
|
||||||
|
|> put_req_header("Accept", "application/activity+json")
|
||||||
|
|> get("/users/#{user.nickname}/outbox")
|
||||||
|
|
||||||
|
assert response(conn, 200) =~ note_activity.data["object"]["content"]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe "/users/:nickname/followers" do
|
describe "/users/:nickname/followers" do
|
||||||
test "it returns the followers in a collection", %{conn: conn} do
|
test "it returns the followers in a collection", %{conn: conn} do
|
||||||
user = insert(:user)
|
user = insert(:user)
|
||||||
|
|
Loading…
Reference in a new issue