aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-06-23 13:28:14 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-07-30 22:01:48 +0200
commit1a2255ef7ed6978b10b0dabbcee1036fe06c87a7 (patch)
treeee1e9cd98df536a0feb0aa392d03211e5ad68300
parent3623504e5d7b4dd6dd250151685343109de1e889 (diff)
downloadpleroma-1a2255ef7ed6978b10b0dabbcee1036fe06c87a7.tar.gz
[Pleroma.FormatterTest]: .add_links: Add a space before the dot
A dot is legal in the url, even at the end, so I moved it for the test
-rw-r--r--test/formatter_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/formatter_test.exs b/test/formatter_test.exs
index c2b3d4ac0..acf0adb1c 100644
--- a/test/formatter_test.exs
+++ b/test/formatter_test.exs
@@ -20,10 +20,10 @@ defmodule Pleroma.FormatterTest do
describe ".add_links" do
test "turning urls into links" do
- text = "Hey, check out https://www.youtube.com/watch?v=8Zg1-TufF%20zY?x=1&y=2#blabla."
+ text = "Hey, check out https://www.youtube.com/watch?v=8Zg1-TufF%20zY?x=1&y=2#blabla ."
expected =
- "Hey, check out <a href=\"https://www.youtube.com/watch?v=8Zg1-TufF%20zY?x=1&amp;y=2#blabla\">https://www.youtube.com/watch?v=8Zg1-TufF%20zY?x=1&amp;y=2#blabla</a>."
+ "Hey, check out <a href=\"https://www.youtube.com/watch?v=8Zg1-TufF%20zY?x=1&amp;y=2#blabla\">https://www.youtube.com/watch?v=8Zg1-TufF%20zY?x=1&amp;y=2#blabla</a> ."
assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected