X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=inline;f=test%2Fhtml_test.exs;h=f0869534cdced6047d9ba72be9f1b27c3a00961b;hb=e52955c961a225618f00f8f0fc0e7dcbf5a51e23;hp=b8906c46a5ef6f0674f66493a8643d0a39680f30;hpb=035368d363e31bd99efb21e1c121574718c81b5e;p=akkoma
diff --git a/test/html_test.exs b/test/html_test.exs
index b8906c46a..f0869534c 100644
--- a/test/html_test.exs
+++ b/test/html_test.exs
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2018 Pleroma Authors
+
"""
@html_span_class_sample """
- hi
+ hi
"""
@html_span_microformats_sample """
- @foo
+ @foo
"""
@html_span_invalid_microformats_sample """
- @foo
+ @foo
"""
describe "StripTags scrubber" do
test "works as expected" do
expected = """
- this is in bold
+ this is in bold
this is a paragraph
this is a linebreak
- this is a link with allowed "rel" attribute: example.com
- this is a link with not allowed "rel" attribute: example.com
+ this is a link with allowed "rel" attribute: example.com
+ this is a link with not allowed "rel" attribute: example.com
this is an image:
- alert('hacked')
+ alert('hacked')
"""
assert expected == HTML.strip_tags(@html_sample)
@@ -61,13 +61,13 @@ defmodule Pleroma.HTMLTest do
describe "TwitterText scrubber" do
test "normalizes HTML as expected" do
expected = """
- this is in bold
+ this is in bold
this is a paragraph
- this is a linebreakthis is a paragraph
- this is a linebreak