react-native-body-highlighter
react-native-body-highlighter copied to clipboard
Add unit tests to the <Body /> component
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