diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/pleroma/web/mastodon_api/views/status_view_test.exs | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/test/pleroma/web/mastodon_api/views/status_view_test.exs b/test/pleroma/web/mastodon_api/views/status_view_test.exs index f41ef580d..ed0a87558 100644 --- a/test/pleroma/web/mastodon_api/views/status_view_test.exs +++ b/test/pleroma/web/mastodon_api/views/status_view_test.exs @@ -328,6 +328,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do          in_reply_to_account_acct: nil,          quote: nil,          quote_url: nil, +        quote_visible: false,          content: %{"text/plain" => HTML.strip_tags(object_data["content"])},          spoiler_text: %{"text/plain" => HTML.strip_tags(object_data["summary"])},          expires_at: nil, @@ -462,6 +463,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do      # The quote isn't rendered      refute status.pleroma.quote      assert status.pleroma.quote_url == private_object.data["id"] +    refute status.pleroma.quote_visible      # After following the user, the quote is rendered      follower = insert(:user) @@ -469,6 +471,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do      status = StatusView.render("show.json", %{activity: quote_private, for: follower})      assert status.pleroma.quote.id == to_string(private.id) +    assert status.pleroma.quote_visible    end    test "quoted direct message" do @@ -485,6 +488,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do      # The quote isn't rendered      refute status.pleroma.quote      assert status.pleroma.quote_url == direct_object.data["id"] +    refute status.pleroma.quote_visible    end    test "contains mentions" do | 
