projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mix format
[akkoma]
/
test
/
mix
/
tasks
/
pleroma
/
digest_test.exs
diff --git
a/test/mix/tasks/pleroma/digest_test.exs
b/test/mix/tasks/pleroma/digest_test.exs
index 69dccb74591c6cb42dd35df84755507b2f355502..b8050c7afe14f54111c26db112ec78081a80a079 100644
(file)
--- a/
test/mix/tasks/pleroma/digest_test.exs
+++ b/
test/mix/tasks/pleroma/digest_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.DigestTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.DigestTest do
@@
-53,7
+53,13
@@
defmodule Mix.Tasks.Pleroma.DigestTest do
assert_email_sent(
to: {user2.name, user2.email},
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
)
end
end