File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
demo/test/components/previews Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ class LinkPreview < Lookbook ::Preview
4+ # Use this example to set default styles to an inline link element.
5+ def default
6+ render ( Flowbite ::Link . new ( href : "https://www.uchiadmin.com" ) ) { "Use this example to set default styles to an inline link element." }
7+ end
8+ end
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ class Flowbite::LinkTest < Minitest::Test
44 include ViewComponent ::TestHelpers
55
66 def test_renders_a_clickable_link
7- render_inline ( Flowbite ::Link . new ( href : "https://uchiadmin.com" ) ) { "Rails Admin Panel" }
7+ render_inline ( Flowbite ::Link . new ( href : "https://www. uchiadmin.com" ) ) { "Rails Admin Panel" }
88
9- assert_selector ( "a[href='https://uchiadmin.com']" , text : "Rails Admin Panel" )
9+ assert_selector ( "a[href='https://www. uchiadmin.com']" , text : "Rails Admin Panel" )
1010 end
1111
1212 def test_adds_options_as_attributes
1313 render_inline (
1414 Flowbite ::Link . new (
15- href : "https://uchiadmin.com" ,
15+ href : "https://www. uchiadmin.com" ,
1616 data : {
1717 turbo : true
1818 }
You can’t perform that action at this time.
0 commit comments