projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#1234] Merge remote-tracking branch 'remotes/upstream/develop' into 1234-mastodon...
[akkoma]
/
test
/
web
/
web_finger
/
web_finger_test.exs
diff --git
a/test/web/web_finger/web_finger_test.exs
b/test/web/web_finger/web_finger_test.exs
index 0d3ef6717f8d0af45f7635d6815393541f83086e..696c1bd7067c7e9cd2b29deff185ac83e5fc8f18 100644
(file)
--- a/
test/web/web_finger/web_finger_test.exs
+++ b/
test/web/web_finger/web_finger_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-201
8
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-201
9
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.WebFingerTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.WebFingerTest do
@@
-40,6
+40,11
@@
defmodule Pleroma.Web.WebFingerTest do
end
describe "fingering" 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"
test "returns the info for an OStatus user" do
user = "shp@social.heldscal.la"