-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(Breadcrumb): move computer of ElementType to method on BreadcrumbSection #2141
Conversation
@@ -10,28 +11,42 @@ describe('BreadcrumbSection', () => { | |||
common.propKeyOnlyToClassName(BreadcrumbSection, 'active') | |||
|
|||
it('renders as a div by default', () => { | |||
shallow(<BreadcrumbSection>Home</BreadcrumbSection>) | |||
shallow(<BreadcrumbSection />) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplify test.
|
||
section.should.have.tagName('a') | ||
section.should.have.attr('href').and.equal('http://google.com') | ||
}) | ||
}) | ||
|
||
describe('onClick', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added missing test 😄
Codecov Report
@@ Coverage Diff @@
## master #2141 +/- ##
=======================================
Coverage 99.76% 99.76%
=======================================
Files 150 150
Lines 2597 2597
=======================================
Hits 2591 2591
Misses 6 6
Continue to review full report at Codecov.
|
Great, thanks for this! |
Released in |
Stripped from #1879.
Ref #607.