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

Add unit tests to the <Body /> component #62

Open
HichamELBSI opened this issue Oct 25, 2024 · 0 comments
Open

Add unit tests to the <Body /> component #62

HichamELBSI opened this issue Oct 25, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@HichamELBSI
Copy link
Owner

Describe the issue

Unit tests are missing for the Body component.

What to test?

  • <Body /> component is properly rendered
  • <Body data={...} /> data is selecting the right body parts
  • <Body data={} onBodyPartPress={() => {}} /> is called properly with the right parameters on press on a body part
  • Test all the other props gender, side, border

How to test?

  • Using @testing-library/react-native
@HichamELBSI HichamELBSI added enhancement New feature or request good first issue Good for newcomers labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant