Chat moderation: fix formatting
authorAlex Gleason <alex@alexgleason.me>
Fri, 11 Sep 2020 19:29:56 +0000 (14:29 -0500)
committerAlex Gleason <alex@alexgleason.me>
Fri, 11 Sep 2020 19:29:56 +0000 (14:29 -0500)
test/web/admin_api/controllers/chat_controller_test.exs

index ccca3521ad8b0ceacfee11acf706f0d6ee97d3df..e81484ce62f8de8cb9b38d8b99cdeb8bf4853369 100644 (file)
@@ -149,7 +149,11 @@ defmodule Pleroma.Web.AdminAPI.ChatControllerTest do
       %{conn: conn, chat: chat, cm_ref: cm_ref}
     end
 
-    test "DELETE /api/pleroma/admin/chats/:id/messages/:message_id", %{conn: conn, chat: chat, cm_ref: cm_ref} do
+    test "DELETE /api/pleroma/admin/chats/:id/messages/:message_id", %{
+      conn: conn,
+      chat: chat,
+      cm_ref: cm_ref
+    } do
       conn
       |> put_req_header("content-type", "application/json")
       |> delete("/api/pleroma/admin/chats/#{chat.id}/messages/#{cm_ref.id}")
@@ -184,7 +188,11 @@ defmodule Pleroma.Web.AdminAPI.ChatControllerTest do
       %{conn: build_conn(), chat: chat, cm_ref: cm_ref}
     end
 
-    test "DELETE /api/pleroma/admin/chats/:id/messages/:message_id", %{conn: conn, chat: chat, cm_ref: cm_ref} do
+    test "DELETE /api/pleroma/admin/chats/:id/messages/:message_id", %{
+      conn: conn,
+      chat: chat,
+      cm_ref: cm_ref
+    } do
       conn
       |> put_req_header("content-type", "application/json")
       |> delete("/api/pleroma/admin/chats/#{chat.id}/messages/#{cm_ref.id}")
@@ -205,5 +213,4 @@ defmodule Pleroma.Web.AdminAPI.ChatControllerTest do
       |> json_response(403)
     end
   end
-
 end