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

Allow unsupported units in toRem / toPx functions #7

Merged
merged 3 commits into from
Oct 27, 2016

Conversation

aaronlademann-wf
Copy link
Contributor

@aaronlademann-wf aaronlademann-wf commented Oct 26, 2016

This change allows consumers to begin utilizing toRem / toPx methods within their components - without causing breaking API changes since their consumers may have been implementing the components using a unit like em.

Mirrors WSD commit 0178dd


FYA @greglittlefield-wf @jacehensley-wf @clairesarsam-wf @joelleibow-wf

@aviary-wf
Copy link

Raven

Number of Findings: 0

@codecov-io
Copy link

codecov-io commented Oct 26, 2016

Current coverage is 96.97% (diff: 100%)

Merging #7 into master will increase coverage by 0.01%

@@             master         #7   diff @@
==========================================
  Files            26         26          
  Lines          1186       1192     +6   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           1150       1156     +6   
  Misses           36         36          
  Partials          0          0          

Powered by Codecov. Last update a7c5843...14b0c41

+ Since codecov is so bae as the kids would say
expect(() => toPx(new CssValue.parse('1em')), allOf(
throwsArgumentError,
throwsA(hasToStringValue(contains('must be a num or a String rem value'))))
throwsA(hasToStringValue(contains('must be a rem num or a String px/rem value'))))
);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs tests for passThroughUnsupportedUnits, like those for toRem.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible that Codecov actually wasn't bae?
cfdd199

Copy link
Contributor Author

Choose a reason for hiding this comment

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

touché greggers

@greglittlefield-wf
Copy link
Contributor

One missing test, otherwise LGTM

@aaronlademann-wf
Copy link
Contributor Author

@greglittlefield-wf test added.

@greglittlefield-wf
Copy link
Contributor

+1

@aaronlademann-wf
Copy link
Contributor Author

@leviwith-wf this is ready for merge

@leviwith-wf
Copy link
Contributor

  • Tests pass

QA +10

Merging

@colefeisthamel-wf
Copy link

RM +1 manually reviewed dependencies

clairesarsam-wf pushed a commit to clairesarsam-wf/over_react that referenced this pull request Jan 6, 2017
Allow unsupported units in toRem / toPx functions
greglittlefield-wf pushed a commit that referenced this pull request Jun 19, 2020
Remove entire line in fix removing dupe prop, fix unawaited futures
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.

7 participants