I have a function inside a div
component as in below code.
<div className='classA'>
{
() => {
someData.map((item) => {
<div className='classB'> {item.name} </div>
})
}
}
</div>
can someone please help in unit testing that function using enzyme.
Aucun commentaire:
Enregistrer un commentaire