formating
authorfence <fence@desu-mail.moe>
Mon, 27 Apr 2020 23:29:31 +0000 (01:29 +0200)
committerfence <fence@desu-mail.moe>
Mon, 27 Apr 2020 23:29:31 +0000 (01:29 +0200)
lib/pleroma/web/mongooseim/mongoose_im_controller.ex
test/web/mongooseim/mongoose_im_controller_test.exs

index 7123153c53c16be2c8cfa437c79585465402c892..1ed6ee521a41a77a3eedde98661dc3e5cfba48b4 100644 (file)
@@ -44,4 +44,3 @@ defmodule Pleroma.Web.MongooseIM.MongooseIMController do
     end
   end
 end
-
index d17f8dbb4c55f2f20a1dc93892c595bc1ee2a3c4..1ac2f2c27aa4fb3e4ab8bc0b626eb3ef10808b3c 100644 (file)
@@ -42,7 +42,13 @@ defmodule Pleroma.Web.MongooseIMController do
 
   test "/check_password", %{conn: conn} do
     user = insert(:user, password_hash: Comeonin.Pbkdf2.hashpwsalt("cool"))
-    _deactivated_user = insert(:user, nickname: "konata", deactivated: true, password_hash: Comeonin.Pbkdf2.hashpwsalt("cool"))
+
+    _deactivated_user =
+      insert(:user,
+        nickname: "konata",
+        deactivated: true,
+        password_hash: Comeonin.Pbkdf2.hashpwsalt("cool")
+      )
 
     res =
       conn
@@ -65,7 +71,6 @@ defmodule Pleroma.Web.MongooseIMController do
 
     assert res == false
 
-
     res =
       conn
       |> get(mongoose_im_path(conn, :check_password), user: "nobody", pass: "cool")