samedi 30 novembre 2019

unit testing a Function inside a div

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