Webfinger: Fix test
This commit is contained in:
parent
b15f8b0642
commit
206ea92837
|
@ -213,6 +213,7 @@ test "prevents spoofing" do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@tag capture_log: true
|
||||||
test "prevents forgeries" do
|
test "prevents forgeries" do
|
||||||
Tesla.Mock.mock(fn
|
Tesla.Mock.mock(fn
|
||||||
%{url: "https://fba.ryona.agency/.well-known/webfinger?resource=acct:graf@fba.ryona.agency"} ->
|
%{url: "https://fba.ryona.agency/.well-known/webfinger?resource=acct:graf@fba.ryona.agency"} ->
|
||||||
|
@ -225,6 +226,6 @@ test "prevents forgeries" do
|
||||||
{:ok, %Tesla.Env{status: 404}}
|
{:ok, %Tesla.Env{status: 404}}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
refute {:ok, _} = WebFinger.finger("graf@fba.ryona.agency")
|
assert {:error, _} = WebFinger.finger("graf@fba.ryona.agency")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue