Fix formatting in test

This commit is contained in:
Justin Tormey 2020-11-19 09:48:28 -06:00
parent 8713d4141a
commit d84ca4d0b7

View file

@ -343,7 +343,7 @@ defmodule LinkifyTest do
test "href handler" do
text = ~s(google.com)
result_text = Linkify.link(text, href_handler: & "/redirect?#{URI.encode_query(to: &1)}")
result_text = Linkify.link(text, href_handler: &"/redirect?#{URI.encode_query(to: &1)}")
assert result_text == ~s(<a href="/redirect?to=http%3A%2F%2Fgoogle.com">google.com</a>)
end