Browse Source

rel me test: fix HTML so broken browsers (and therefore

lexbor) refuse to parse it like mochiweb does
note-update
rinpatch 4 years ago
parent
commit
7e23a48d38
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      test/web/metadata/rel_me_test.exs

+ 1
- 0
test/web/metadata/rel_me_test.exs View File

@@ -10,6 +10,7 @@ defmodule Pleroma.Web.Metadata.Providers.RelMeTest do
test "it renders all links with rel='me' from user bio" do
bio =
~s(<a href="https://some-link.com">https://some-link.com</a> <a rel="me" href="https://another-link.com">https://another-link.com</a> <link href="http://some.com"> <link rel="me" href="http://some3.com">)

user = insert(:user, %{bio: bio})

assert RelMe.build_tags(%{user: user}) == [


Loading…
Cancel
Save