Verified Commit 1a2255ef authored by Haelwenn's avatar Haelwenn

[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
parent 3623504e
......@@ -20,10 +20,10 @@ defmodule Pleroma.FormatterTest do
describe ".add_links" do
test "turning urls into links" do
text = "Hey, check out"
text = "Hey, check out ."
expected =
"Hey, check out <a href=\";y=2#blabla\">;y=2#blabla</a>."
"Hey, check out <a href=\";y=2#blabla\">;y=2#blabla</a> ."
assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment