Fixed test
authorSyldexia <syldexia@ofthewi.red>
Mon, 21 May 2018 21:32:28 +0000 (22:32 +0100)
committerSyldexia <syldexia@ofthewi.red>
Mon, 21 May 2018 22:06:03 +0000 (23:06 +0100)
test/web/common_api/common_api_utils_test.exs

index 23cce471f4cfb622444c9d1e13d72f180dcdd151..f39472ee33b1dc309423fc2a8a10dcd6fab04fca 100644 (file)
@@ -21,13 +21,12 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
     test "incorrect password given" do
       {:ok, user} = UserBuilder.insert()
 
-      assert Utils.confirm_current_password(user, %{"password" => ""}) ==
-               {:error, "Invalid password."}
+      assert Utils.confirm_current_password(user, "") == {:error, "Invalid password."}
     end
 
     test "correct password given" do
       {:ok, user} = UserBuilder.insert()
-      assert Utils.confirm_current_password(user, %{"password" => "test"}) == {:ok, user}
+      assert Utils.confirm_current_password(user, "test") == {:ok, user}
     end
   end
 end