Skip to content

test: add unit tests for component light - #1489

Merged
ferdicus merged 4 commits into
rnmapbox:masterfrom
viddity:test/light
Aug 20, 2021
Merged

test: add unit tests for component light#1489
ferdicus merged 4 commits into
rnmapbox:masterfrom
viddity:test/light

Conversation

@viddity

@viddity viddity commented Aug 9, 2021

Copy link
Copy Markdown
Contributor

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

@ferdicus ferdicus left a comment

Copy link
Copy Markdown
Member

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