Skip to content

Commit

Permalink
Fix link test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Dec 4, 2024
1 parent 004cb2a commit 8891e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/components/beta/link_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_renders_content_and_not_muted_link
def test_renders_no_additional_whitespace
result = render_inline(Primer::Beta::Link.new(href: "http://joe-jonas-shirtless.com")) { "content" }

assert_match(%r{^<a[^>]+><span[^>]+>content</span></a>$}, result.to_s)
assert_match(%r{^<a[^>]+>content</a>$}, result.to_s)
end

def test_renders_without_trailing_newline
Expand Down

0 comments on commit 8891e8b

Please sign in to comment.