commit: bdd98ee731c49fe13d5e143bc2517a542aabc308
parent 204ad610e3a14414d3b4543f6b4693f961213981
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 27 Feb 2019 18:33:06 +0100
AutoLinker.BuilderTest: Do not pass overridden href to create_link/2
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/builder_test.exs b/test/builder_test.exs
@@ -8,15 +8,15 @@ defmodule AutoLinker.BuilderTest do
expected =
"<a href=\"http://text\" class=\"auto-linker\" target=\"_blank\" rel=\"noopener noreferrer\">text</a>"
- assert create_link("text", %{href: "url"}) == expected
+ assert create_link("text", %{}) == expected
expected = "<a href=\"http://text\" class=\"auto-linker\" target=\"_blank\">text</a>"
- assert create_link("text", %{href: "url", rel: nil}) == expected
+ assert create_link("text", %{rel: nil}) == expected
expected =
"<a href=\"http://text\" class=\"auto-linker\" target=\"_blank\" rel=\"me\">text</a>"
- assert create_link("text", %{href: "url", rel: "me"}) == expected
+ assert create_link("text", %{rel: "me"}) == expected
end
test "create_markdown_links/2" do