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

test: add unit tests for component light #1489

Merged
merged 4 commits into from
Aug 20, 2021
Merged

Conversation

viddity
Copy link
Contributor

@viddity viddity commented Aug 9, 2021

Description

Unit tests for the small component Light.js is a first step to contribute to missing component tests.

Please note:
When I tried to commit via the command line, the pre-commit linting step threw an error on LineGradient because of inline styles. I fixed that by extracting the styles.
Please let me know if it would have been more appropriate to disabled the linting rule.

Checklist

  • I have tested this on a device/simulator for each compatible OS
  • I updated the documentation yarn generate
  • I mentioned this change in CHANGELOG.md
  • I updated the typings files (index.d.ts)
  • I added/ updated a sample (/example)

Screenshot OR Video

none

Copy link
Member

@ferdicus ferdicus left a comment

Choose a reason for hiding this comment

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

thanks

@ferdicus ferdicus merged commit 72a7ce4 into rnmapbox:master Aug 20, 2021
mikalaiulasevich pushed a commit to OneSoil-Platform/maps that referenced this pull request Sep 23, 2021
* fix: apply to lint rule no-inline-styles

The inline styles in GradienLine led to a linter error
which prevents from commiting via cli.

* test: add unit tests for Light component

* chore: update CHANGELOG

* fix: add missing closing brackets in CHANGELOG
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.

2 participants