mix format

This commit is contained in:
Alex Gleason 2022-01-15 12:55:12 -06:00
parent cd8f1aac47
commit 39c5ebb1f6
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 6 additions and 5 deletions

View File

@ -318,7 +318,7 @@ test "parses tags in html" do
text = "<p>This is a #test</p>"
expected_tags = [
{"#test", "test"},
{"#test", "test"}
]
assert {_text, [], ^expected_tags} = Formatter.linkify(text)
@ -331,7 +331,7 @@ test "parses mulitple tags in html" do
{"#tag1", "tag1"},
{"#tag2", "tag2"},
{"#tag3", "tag3"},
{"#tag4", "tag4"},
{"#tag4", "tag4"}
]
assert {_text, [], ^expected_tags} = Formatter.linkify(text)
@ -341,14 +341,15 @@ test "parses tags on the last line of html" do
text = "<p>This is a</p><p>#test</p>"
expected_tags = [
{"#test", "test"},
{"#test", "test"}
]
assert {_text, [], ^expected_tags} = Formatter.linkify(text)
end
test "parses mulitple tags on mulitple lines in html" do
text = "<p>testing...</p><p>#tag1 #tag2 #tag3 #tag4</p><p>paragraph</p><p>#tag5 #tag6 #tag7 #tag8</p>"
text =
"<p>testing...</p><p>#tag1 #tag2 #tag3 #tag4</p><p>paragraph</p><p>#tag5 #tag6 #tag7 #tag8</p>"
expected_tags = [
{"#tag1", "tag1"},
@ -358,7 +359,7 @@ test "parses mulitple tags on mulitple lines in html" do
{"#tag5", "tag5"},
{"#tag6", "tag6"},
{"#tag7", "tag7"},
{"#tag8", "tag8"},
{"#tag8", "tag8"}
]
assert {_text, [], ^expected_tags} = Formatter.linkify(text)