tests WebFinger

This commit is contained in:
Maksim 2019-07-24 15:13:10 +00:00 committed by kaniini
commit 55341ac717
7 changed files with 141 additions and 24 deletions

View file

@ -40,6 +40,11 @@ defmodule Pleroma.Web.WebFingerTest do
end
describe "fingering" do
test "returns error when fails parse xml or json" do
user = "invalid_content@social.heldscal.la"
assert {:error, %Jason.DecodeError{}} = WebFinger.finger(user)
end
test "returns the info for an OStatus user" do
user = "shp@social.heldscal.la"