Verify MastoFE Controller put_settings response
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 16 Feb 2021 22:40:50 +0000 (23:40 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 15 Mar 2021 05:47:06 +0000 (06:47 +0100)
test/pleroma/web/mastodon_api/masto_fe_controller_test.exs

index ea66c708fcd2f9313ac9b01a28019727502abad6..e679d781a5f10033d911dc10c4632253427177de 100644 (file)
@@ -20,7 +20,7 @@ defmodule Pleroma.Web.MastodonAPI.MastoFEControllerTest do
       |> assign(:token, insert(:oauth_token, user: user, scopes: ["write:accounts"]))
       |> put("/api/web/settings", %{"data" => %{"programming" => "socks"}})
 
-    assert _result = json_response(conn, 200)
+    assert %{} = json_response(conn, 200)
 
     user = User.get_cached_by_ap_id(user.ap_id)
     assert user.mastofe_settings == %{"programming" => "socks"}