commit: d84ca4d0b74354e3a56f29370f3dbfc25380e7ae
parent 8713d4141a17bc03ceb825f3d8e6df2e9e2814b6
Author: Justin Tormey <jrtormey@gmail.com>
Date: Thu, 19 Nov 2020 09:48:28 -0600
Fix formatting in test
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/linkify_test.exs b/test/linkify_test.exs
@@ -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