Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
7e23a48d
Commit
7e23a48d
authored
Jul 16, 2020
by
rinpatch
Browse files
rel me test: fix HTML so broken browsers (and therefore
lexbor) refuse to parse it like mochiweb does
parent
325c7c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/web/metadata/rel_me_test.exs
View file @
7e23a48d
...
...
@@ -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
})
==
[
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment