diff options
author | lain <lain@soykaf.club> | 2020-08-26 13:17:39 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-08-26 13:17:39 +0200 |
commit | fc42446755d5284a2406633358ab8edfa8c0ab0c (patch) | |
tree | 16924be1f511166b4b1a5d91ce681696ee2a19f1 /test/web | |
parent | 49a436ad3e174e1b0b6442f7a777498cc551449c (diff) | |
parent | 797535155051e75227fca611c3486c02c01a98b3 (diff) | |
download | pleroma-fc42446755d5284a2406633358ab8edfa8c0ab0c.tar.gz pleroma-fc42446755d5284a2406633358ab8edfa8c0ab0c.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into pleroma-2.1-rc0
Diffstat (limited to 'test/web')
-rw-r--r-- | test/web/mastodon_api/views/notification_view_test.exs | 2 | ||||
-rw-r--r-- | test/web/web_finger/web_finger_test.exs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/web/mastodon_api/views/notification_view_test.exs b/test/web/mastodon_api/views/notification_view_test.exs index 8e0e58538..2f6a808f1 100644 --- a/test/web/mastodon_api/views/notification_view_test.exs +++ b/test/web/mastodon_api/views/notification_view_test.exs @@ -219,7 +219,7 @@ defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do expected = %{ id: to_string(notification.id), - pleroma: %{is_seen: false, is_muted: true}, + pleroma: %{is_seen: true, is_muted: true}, type: "favourite", account: AccountView.render("show.json", %{user: another_user, for: user}), status: StatusView.render("show.json", %{activity: create_activity, for: user}), diff --git a/test/web/web_finger/web_finger_test.exs b/test/web/web_finger/web_finger_test.exs index f4884e0a2..96fc0bbaa 100644 --- a/test/web/web_finger/web_finger_test.exs +++ b/test/web/web_finger/web_finger_test.exs @@ -40,6 +40,11 @@ defmodule Pleroma.Web.WebFingerTest do end describe "fingering" do + test "returns error for nonsensical input" do + assert {:error, _} = WebFinger.finger("bliblablu") + assert {:error, _} = WebFinger.finger("pleroma.social") + end + test "returns error when fails parse xml or json" do user = "invalid_content@social.heldscal.la" assert {:error, %Jason.DecodeError{}} = WebFinger.finger(user) |