diff --git a/test/phoenix_component/components_test.exs b/test/phoenix_component/components_test.exs
index 3955d16cb4..0a90ccd273 100644
--- a/test/phoenix_component/components_test.exs
+++ b/test/phoenix_component/components_test.exs
@@ -108,7 +108,7 @@ defmodule Phoenix.LiveView.ComponentsTest do
assert t2h(
~H|<.link href="/users" method="post" csrf_token="123" data-confirm="are you sure?">delete|
) ==
- ~X"delete"
+ ~X|delete|
end
test "js schemes" do