-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Unit control Utils: update JS Docs and add basic test coverage #32774
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…his commit updates the param and return types to reflect current usage and adds some basic test coverage.
ramonjd
requested review from
ajitbohra,
chrisvanpatten,
oandregal and
spacedmonkey
as code owners
June 17, 2021 11:33
ramonjd
force-pushed
the
add/unit-contol-utils-tests
branch
from
June 17, 2021 11:33
27bf26d
to
740f9fa
Compare
ramonjd
added
[Type] Code Quality
Issues or PRs that relate to code quality
[Type] Developer Documentation
Documentation for developers
labels
Jun 17, 2021
Size Change: 0 B Total Size: 1.04 MB ℹ️ View Unchanged
|
aristath
approved these changes
Jun 17, 2021
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.
Thank you @ramonjd!
Makes sense, we can merge this one once tests pass 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Type] Code Quality
Issues or PRs that relate to code quality
[Type] Developer Documentation
Documentation for developers
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The JS Docs defining the argument property types for
useCustomUnits()
did not match examples of usage, where some properties wereundefined
.Examples:
font-size-picker/index.js
This was causing Type warnings.
This commit updates the param and return types to reflect current usage and adds some basic test coverage.
The types in the JS Doc describing objects are still not super specific, but this PR aims only to remove the warning for now.
How has this been tested?
npm run test-unit packages/components/src/unit-control/test/utils.js
Screenshots
Types of changes
No code changes. We're only updating documentation and adding unit tests.