warning fix
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Sun, 28 Feb 2021 16:41:25 +0000 (19:41 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Sun, 28 Feb 2021 16:41:25 +0000 (19:41 +0300)
test/pleroma/web/mastodon_api/controllers/status_controller_test.exs

index dd2f306b793e2d5a5af936464fbb6e00b671d897..bd385bccde6be6ea360c2aa68aaa0bd0879400b6 100644 (file)
@@ -364,8 +364,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
 
       %Pleroma.Web.OAuth.Token{
         app: %Pleroma.Web.OAuth.App{
-          client_name: _app_name,
-          website: _app_website
+          client_name: app_name,
+          website: app_website
         }
       } = token
 
@@ -379,8 +379,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
       assert %{
                "content" => "cofe is my copilot",
                "application" => %{
-                 "name" => app_name,
-                 "website" => app_website
+                 "name" => ^app_name,
+                 "website" => ^app_website
                }
              } = json_response_and_validate_schema(result, 200)
     end