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

Fix/unmounting select #512

Merged
merged 5 commits into from Dec 12, 2018

Conversation

hvolschenk
Copy link
Contributor

Fixes #489

this.foundation_.destroy();
if (this.foundation_) {
this.foundation_.destroy();
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change (and all the others like it below) are not testable.
This means the PR here will bring the coverage amount down substantially.

It's a bit of a chicken/egg scenario as I need the foundation to not exist to check that destroy() is not called, but I need the foundation to exist to stub out destroy(). Sadface.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Merging #512 into master will increase coverage by 0.01%

Huh? If you say so codecov.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ha - ya that makes sense. I believe all components have a foo calls destory on unmount test so we should be fine. Thanks for opening PR!

@codecov-io
Copy link

codecov-io commented Dec 11, 2018

Codecov Report

Merging #512 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #512      +/-   ##
==========================================
+ Coverage   96.62%   96.63%   +0.01%     
==========================================
  Files          59       59              
  Lines        1984     1990       +6     
  Branches      235      241       +6     
==========================================
+ Hits         1917     1923       +6     
  Misses         67       67
Impacted Files Coverage Δ
packages/select/index.js 100% <100%> (ø) ⬆️
packages/checkbox/index.js 89.83% <100%> (+0.17%) ⬆️
packages/text-field/index.js 100% <100%> (ø) ⬆️
packages/radio/index.js 100% <100%> (ø) ⬆️
packages/text-field/icon/index.js 100% <100%> (ø) ⬆️
packages/text-field/helper-text/index.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 179b865...1088ea5. Read the comment docs.

@moog16
Copy link
Contributor

moog16 commented Dec 12, 2018

@hvolschenk please sign :)

@moog16
Copy link
Contributor

moog16 commented Dec 12, 2018

opened test PR: #514

@hvolschenk
Copy link
Contributor Author

I signed it

@moog16 moog16 merged commit 2ee4c80 into material-components:master Dec 12, 2018
@hvolschenk hvolschenk deleted the fix/unmounting-select branch December 12, 2018 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants