Correct test for apostrophes on mentions. It wasn't validating anything.

This commit is contained in:
Mark Felder 2021-02-13 12:47:44 -06:00
parent c878e0da93
commit 3999a61535
1 changed files with 9 additions and 2 deletions

View File

@ -383,10 +383,17 @@ defmodule LinkifyTest do
new_window: true
) == expected
expected =
"That's <a href=\"https://example.com/user/user@example.com\" target=\"_blank\">@user@example.com</a>'s server"
text = "That's @user@example.com's server"
assert Linkify.link(text, mention: true, mention_prefix: "https://example.com/user/") ==
text
assert Linkify.link(text,
mention: true,
mention_prefix: "https://example.com/user/",
new_window: true
) ==
expected
end
test "mentions with no word-separation before them" do