Skip to content

Commit 4adcb08

Browse files
committed
Add spec for UswdsComponents::BasicHeaderComponent::BasicLogo
1 parent ca8cad6 commit 4adcb08

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

spec/components/uswds_components/basic_header_component_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
end
2121
end
2222

23+
describe UswdsComponents::BasicHeaderComponent::BasicLogo, type: :component do
24+
let(:component) { described_class.new(title: "Title", href: "/home") }
25+
26+
it "links to the href" do
27+
render_inline(component)
28+
expect(page).to have_link("Title", href: "/home")
29+
end
30+
end
31+
2332
describe UswdsComponents::BasicHeaderComponent::PrimaryItem,
2433
type: :component do
2534
let(:component) { described_class.new(title: "Help", href: '/help') }

0 commit comments

Comments
 (0)