Fix digest test

This commit is contained in:
Tusooa Zhu 2022-03-01 20:27:45 -05:00
parent 1deab33fb0
commit 8b0c2890f9
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224

View file

@ -53,7 +53,13 @@ defmodule Mix.Tasks.Pleroma.DigestTest do
assert_email_sent(
to: {user2.name, user2.email},
html_body: ~r/here is what you've missed!/i
html_body:
Regex.compile!(
"here is what you've missed!"
|> Phoenix.HTML.html_escape()
|> Phoenix.HTML.safe_to_string(),
"i"
)
)
end
end