diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-03-05 05:44:53 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-03-13 04:26:56 +0100 |
commit | 23960309a0677eac1cca93cbff59b31bd7e19961 (patch) | |
tree | 38cda3131f5c7c7528c40170f5037702c625ed50 /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | c42d34b2ec2dacd9a038f721f7a817ee43cc0a4f (diff) | |
download | pleroma-23960309a0677eac1cca93cbff59b31bd7e19961.tar.gz pleroma-23960309a0677eac1cca93cbff59b31bd7e19961.zip |
[Credo] Change quoted string with 3+ quotes to sigils
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 87b28e24e..059d5237d 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -1632,9 +1632,10 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do assert user = json_response(conn, 200) assert user["note"] == - "I drink <a class=\"hashtag\" data-tag=\"cofe\" href=\"http://localhost:4001/tag/cofe\">#cofe</a> with <span class=\"h-card\"><a data-user=\"#{ - user2.id - }\" class=\"u-url mention\" href=\"#{user2.ap_id}\">@<span>#{user2.nickname}</span></a></span>" + ~s(I drink <a class="hashtag" data-tag="cofe" href="http://localhost:4001/tag/cofe">#cofe</a> with <span class="h-card"><a data-user=") <> + user2.id <> + ~s(" class="u-url mention" href=") <> + user2.ap_id <> ~s(">@<span>) <> user2.nickname <> ~s(</span></a></span>) end test "updates the user's locking status", %{conn: conn} do |