test: use sigils for HTML strings in quote link tests
This commit is contained in:
parent
2c872cf474
commit
0667705b77
1 changed files with 4 additions and 4 deletions
|
|
@ -343,8 +343,8 @@ defmodule Pleroma.HTMLTest do
|
||||||
data: %{
|
data: %{
|
||||||
"quoteUrl" => "https://raru.re/users/ocean/statuses/116235427788617987",
|
"quoteUrl" => "https://raru.re/users/ocean/statuses/116235427788617987",
|
||||||
"content" =>
|
"content" =>
|
||||||
"<p class=\"quote-inline\">RE: <a href=\"https://raru.re/@ocean/116235427788617987\">raru.re/@ocean/116235427788617987</a></p>" <>
|
~s(<p class="quote-inline">RE: <a href="https://raru.re/@ocean/116235427788617987">raru.re/@ocean/116235427788617987</a></p>) <>
|
||||||
"<p>Berapa lapis?</p><p><a href=\"https://www.youtube.com/watch?v=S0dJMhWDRDE\">youtube.com/watch?v=S0dJMhWDRDE</a></p>"
|
~s(<p>Berapa lapis?</p><p><a href="https://www.youtube.com/watch?v=S0dJMhWDRDE">youtube.com/watch?v=S0dJMhWDRDE</a></p>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -356,7 +356,7 @@ defmodule Pleroma.HTMLTest do
|
||||||
object = %Object{
|
object = %Object{
|
||||||
data: %{
|
data: %{
|
||||||
"content" =>
|
"content" =>
|
||||||
"hello<span class=\"quote-inline\"><br/><br/>RE: <a href=\"https://misskey.example/notes/abc\">https://misskey.example/notes/abc</a></span>"
|
~s(hello<span class="quote-inline"><br/><br/>RE: <a href="https://misskey.example/notes/abc">https://misskey.example/notes/abc</a></span>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -368,7 +368,7 @@ defmodule Pleroma.HTMLTest do
|
||||||
data: %{
|
data: %{
|
||||||
"quoteUrl" => "https://remote.example/objects/1",
|
"quoteUrl" => "https://remote.example/objects/1",
|
||||||
"content" =>
|
"content" =>
|
||||||
"RE: <a href=\"https://remote.example/objects/1\">https://remote.example/objects/1</a> <a href=\"https://cofe.example/\">cofe</a>"
|
~s(RE: <a href="https://remote.example/objects/1">https://remote.example/objects/1</a> <a href="https://cofe.example/">cofe</a>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue