react-native-body-highlighter icon indicating copy to clipboard operation
react-native-body-highlighter copied to clipboard

Add unit tests to the <Body /> component

Open HichamELBSI opened this issue 4 months ago • 0 comments

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 avatar Oct 25 '24 15:10 HichamELBSI