Im new to testing react-native code using jest and I want to achieve this simple test. I have the following code and I want to test that if data === '0'
then return value null
.
export class Test extends Component {
...
_renderRow (data) {
if (data === '0') {
return null
}
return //other item
}
...
}
Aucun commentaire:
Enregistrer un commentaire