diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-08-06 18:21:25 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-08-14 14:52:54 +0700 |
commit | f7bbf99caade7f06756e95e3a4e2f0e4d3e76579 (patch) | |
tree | c88c9e372a60fc2d6822a4d7d6cf6aa7c4f2353d /test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs | |
parent | 2c35d4b0b04e58368c51f2828536d295f72839a2 (diff) | |
download | pleroma-f7bbf99caade7f06756e95e3a4e2f0e4d3e76579.tar.gz pleroma-f7bbf99caade7f06756e95e3a4e2f0e4d3e76579.zip |
Use info.fields instead of source_data for remote users
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs b/test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs index e75f25d51..dd443495b 100644 --- a/test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs @@ -305,7 +305,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do user = insert(:user) fields = [ - %{"name" => "<b>foo<b>", "value" => "<i>bar</i>"}, + %{"name" => "<a href=\"http://google.com\">foo</a>", "value" => "<script>bar</script>"}, %{"name" => "link", "value" => "cofe.io"} ] @@ -316,12 +316,15 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do |> json_response(200) assert account["fields"] == [ - %{"name" => "<b>foo<b>", "value" => "<i>bar</i>"}, + %{"name" => "foo", "value" => "bar"}, %{"name" => "link", "value" => "<a href=\"http://cofe.io\">cofe.io</a>"} ] assert account["source"]["fields"] == [ - %{"name" => "<b>foo<b>", "value" => "<i>bar</i>"}, + %{ + "name" => "<a href=\"http://google.com\">foo</a>", + "value" => "<script>bar</script>" + }, %{"name" => "link", "value" => "cofe.io"} ] |