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
ef52aa0e
Commit
ef52aa0e
authored
Apr 26, 2019
by
kaniini
Browse files
tests: fix up for changed bbcode library output and verify html is properly escaped
parent
501af917
Pipeline
#11151
passed with stages
in 3 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/web/common_api/common_api_utils_test.exs
View file @
ef52aa0e
...
...
@@ -128,7 +128,16 @@ test "works for bare text/bbcode" do
assert
output
==
expected
text
=
"[b]hello world![/b]
\n\n
second paragraph!"
expected
=
"<strong>hello world!</strong><br><br>second paragraph!"
expected
=
"<strong>hello world!</strong><br>
\n
<br>
\n
second paragraph!"
{
output
,
[],
[]}
=
Utils
.
format_input
(
text
,
"text/bbcode"
)
assert
output
==
expected
text
=
"[b]hello world![/b]
\n\n
<strong>second paragraph!</strong>"
expected
=
"<strong>hello world!</strong><br>
\n
<br>
\n
<strong>second paragraph!</strong>"
{
output
,
[],
[]}
=
Utils
.
format_input
(
text
,
"text/bbcode"
)
...
...
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