Skip to content
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

Merged
merged 1 commit into from
Sep 28, 2017

Conversation

layershifter
Copy link
Member

Stripped from #1879.

Ref #607.

@@ -10,28 +11,42 @@ describe('BreadcrumbSection', () => {
common.propKeyOnlyToClassName(BreadcrumbSection, 'active')

it('renders as a div by default', () => {
shallow(<BreadcrumbSection>Home</BreadcrumbSection>)
shallow(<BreadcrumbSection />)
Copy link
Member Author

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', () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added missing test 😄

@codecov-io
Copy link

Codecov Report

Merging #2141 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2141   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files         150      150           
  Lines        2597     2597           
=======================================
  Hits         2591     2591           
  Misses          6        6
Impacted Files Coverage Δ
src/collections/Breadcrumb/BreadcrumbSection.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6153ae7...3e303d6. Read the comment docs.

@layershifter layershifter merged commit 8ecb71d into master Sep 28, 2017
@layershifter layershifter deleted the perf/breadcrumb-section branch September 28, 2017 15:43
@layershifter layershifter changed the title perf(Breadcrumb): move computer of ElementType to method on BreabcrumbSection perf(Breadcrumb): move computer of ElementType to method on BreadcrumbSection Sep 28, 2017
@levithomason
Copy link
Member

Great, thanks for this!

@levithomason
Copy link
Member

Released in [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants