test: fix scrobble controller tests
This commit is contained in:
parent
e653edd182
commit
211008ae2f
|
@ -26,7 +26,7 @@ test "works correctly", %{conn: conn} do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "GET /api/v1/pleroma/accounts/:id/now-playing" do
|
describe "GET /api/v1/pleroma/accounts/:id/scrobbles" do
|
||||||
test "works correctly", %{conn: conn} do
|
test "works correctly", %{conn: conn} do
|
||||||
user = insert(:user)
|
user = insert(:user)
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ test "works correctly", %{conn: conn} do
|
||||||
|
|
||||||
conn =
|
conn =
|
||||||
conn
|
conn
|
||||||
|> get("/api/v1/pleroma/accounts/#{user.id}/now-playing")
|
|> get("/api/v1/pleroma/accounts/#{user.id}/scrobbles")
|
||||||
|
|
||||||
result = json_response(conn, 200)
|
result = json_response(conn, 200)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue