瀏覽代碼

Add tests.

tags/v0.9.9
eal 6 年之前
父節點
當前提交
8e94936553
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. +7
    -0
      test/web/mastodon_api/mastodon_api_controller_test.exs

+ 7
- 0
test/web/mastodon_api/mastodon_api_controller_test.exs 查看文件

@@ -281,6 +281,13 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|> post("/api/v1/accounts/#{other_user.id}/unfollow")

assert %{"id" => id, "following" => false} = json_response(conn, 200)

user = Repo.get(User, user.id)
conn = build_conn()
|> assign(:user, user)
|> post("/api/v1/follows", %{"uri" => other_user.nickname})

assert %{"id" => id, "following" => true} = json_response(conn, 200)
end

test "unimplemented block/mute endpoints" do


Loading…
取消
儲存