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(floating-label): achieved 100% test coverage #2523

Merged
merged 2 commits into from
Apr 6, 2018

Conversation

moog16
Copy link
Contributor

@moog16 moog16 commented Apr 5, 2018

It has been bothering me that I didn't get to 100% test coverage before, so here we are!

Copy link
Contributor

@bonniezhou bonniezhou left a comment

Choose a reason for hiding this comment

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

Nice!

const {component} = setupTest();
component.foundation_.shake = td.func();
component.shake(true);
td.verify(component.shake(true), {times: 1});
Copy link
Contributor

@kfranqueiro kfranqueiro Apr 6, 2018

Choose a reason for hiding this comment

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

This is literally verifying the thing you just called (and is probably not even operating through td since it's not a mock?). I think this is supposed to be foundation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah! Yes...I'm supposed to be testing the foundation like in the subsequent tests. Thanks for catching.

@codecov-io
Copy link

Codecov Report

Merging #2523 into master will increase coverage by 0.14%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2523      +/-   ##
==========================================
+ Coverage   98.71%   98.85%   +0.14%     
==========================================
  Files         103      103              
  Lines        4111     4111              
  Branches      516      516              
==========================================
+ Hits         4058     4064       +6     
+ Misses         53       47       -6
Impacted Files Coverage Δ
packages/mdc-floating-label/index.js 100% <0%> (+40%) ⬆️

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 4876cf2...29e7ce8. Read the comment docs.

@moog16 moog16 merged commit 2e7f904 into master Apr 6, 2018
@moog16 moog16 deleted the fix/floating-label/100percent-test-cov branch April 6, 2018 19:18
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.

4 participants