lundi 4 novembre 2019

How to write a basic sanity test using jasmine enzyme to make sure ref added to a React fuctional Component works?

I have functional component as below:

function TextInput() {
return (
  <div>
     <input ref={inputRef}> {children} 
     </input>
  </div>

}

I have a new added ref to above component. I want add basic sanity check to test ref in above component.

Aucun commentaire:

Enregistrer un commentaire