forked from AkkomaGang/akkoma
Fixed test
This commit is contained in:
parent
d0690622cd
commit
69aa7c213a
1 changed files with 2 additions and 3 deletions
|
@ -21,13 +21,12 @@ test "it adds attachment links to a given text and attachment set" do
|
||||||
test "incorrect password given" do
|
test "incorrect password given" do
|
||||||
{:ok, user} = UserBuilder.insert()
|
{:ok, user} = UserBuilder.insert()
|
||||||
|
|
||||||
assert Utils.confirm_current_password(user, %{"password" => ""}) ==
|
assert Utils.confirm_current_password(user, "") == {:error, "Invalid password."}
|
||||||
{:error, "Invalid password."}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test "correct password given" do
|
test "correct password given" do
|
||||||
{:ok, user} = UserBuilder.insert()
|
{: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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue